mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
(timeout_handler): Rewrite ts initialization for C++.
This commit is contained in:
@ -152,7 +152,9 @@ timeout_handler (int sig __attribute__ ((unused)))
|
||||
nanosleep() call return prematurely, all the better. We
|
||||
won't restart it since this probably means the child process
|
||||
finally died. */
|
||||
struct timespec ts = { .tv_sec = 0, .tv_nsec = 100000000 };
|
||||
struct timespec ts;
|
||||
ts.tv_sec = 0;
|
||||
ts.tv_nsec = 100000000;
|
||||
nanosleep (&ts, NULL);
|
||||
}
|
||||
if (killed != 0 && killed != pid)
|
||||
|
Reference in New Issue
Block a user