(timeout_handler): Rewrite ts initialization for C++.

This commit is contained in:
Ulrich Drepper 2005-12-23 01:03:28 +00:00
parent 35f166df44
commit 331926097f

View File

@ -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)