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 am not sure where the bug
> is.

There is no problem.  POSIX explicitly says

3.3.1.3 [...]
(2) SIG_IGN -- ignore signal
    [...]
    (d) If a process sets the action for the SIGCHLD signal to SIG_IGN,
        the behaviour is unspecified.


Your program is not POSIX compliant if it sets SIGCHLD to this value
and therefore the library need not be either.

-- 
---------------.      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]