A patch for nanosleep
Zack Weinberg
zack@rabi.columbia.edu
Tue Nov 17 10:22:00 GMT 1998
On Tue, 17 Nov 1998 09:29:20 -0800 (PST), H.J. Lu wrote:
>
>Here is an optimized nanosleep.c for glibc 2.
[...]
> /* Should we really block SIGCHLD? */
> ignored = (oact.sa_handler == SIG_IGN);
>
> if (!ignored)
> /* Restore the original signal mask. */
> (void) sigprocmask (SIG_SETMASK, &oset, (sigset_t *) NULL);
>
> ret = __syscall_nanosleep (req, rem);
>
> if (ignored)
These 'if' conditions are backward.
zw
More information about the Libc-hacker
mailing list