You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
317 B
26 lines
317 B
#if defined(_WIN32)
|
|
# include <windows.h>
|
|
#else
|
|
# include <sched.h>
|
|
# include <unistd.h>
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
|
|
int main(void)
|
|
{
|
|
#ifdef FORK
|
|
pid_t pid = fork();
|
|
if (pid != 0) {
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#if defined(_WIN32)
|
|
Sleep((TIMEOUT + 4) * 1000);
|
|
#else
|
|
sleep((TIMEOUT + 4));
|
|
#endif
|
|
return 0;
|
|
}
|