This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A patch for nanosleep


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]