On Sun, Jan 15, 2012 at 12:46:33PM +0100, Richard Braun wrote: > When built without NPTL support (or for a sparc target), the system() > function doesn't conform to its specification. Namely, it resets the > SIGCHLD handler to its default instead of blocking the signal, which > may result in "lost" signals if a custom handler was installed. > Replace this by appropriate calls to sigprocmask().
Your report is wrong. system is REQUIRED by POSIX to change the signal disposition for SIGCHLD, not just to block the signal. It should change it to SIG_IGN, not SIG_DFL, but for practical purposes these are the same or similar. The code you sent the patch for is buggy, however, since it uses signal() rather than sigaction() and thus cannot correctly restore the signal disposition if it was installed with sigaction(). Rich _______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
