BUG: Use sleep(1) instead of usleep(1000000) because some UNIX systems specify that the argument to usleep must be less than 1000000.
This commit is contained in:
parent
b25dea9f11
commit
05f5f379a7
|
@ -141,7 +141,7 @@ int test7(int argc, const char* argv[])
|
|||
#if defined(_WIN32)
|
||||
Sleep(1000);
|
||||
#else
|
||||
usleep(1000000);
|
||||
sleep(1);
|
||||
#endif
|
||||
fprintf(stdout, "Output on stdout after sleep.\n");
|
||||
fprintf(stderr, "Output on stderr after sleep.\n");
|
||||
|
|
Loading…
Reference in New Issue