Re: A patch for nanosleep

Zack Weinberg (zack@rabi.columbia.edu)
Tue, 17 Nov 1998 13:22:24 -0500


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/