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


hjl@lucon.org (H.J. Lu) writes:

> The problem is signal(SIGCHLD, SIG_IGN). If you add it before
> fork, you will see the difference.

I looked through the Unix98 docs and they stupidly standardized the
SysV behaviour for signal(SIGCHLD, SIG_IGN).  So be it.

But this does not mean the nanosleep() function has to be changed
(once I agree with Linus, wow).  The wrapper you wrote should instead
go into the sysdeps/unix/sysv/linux/sleep.c file.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


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