diff options
author | Richard Braun <rbraun@sceen.net> | 2012-01-17 10:33:10 +0100 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-01-23 21:22:06 -0500 |
commit | eb72efd81e0d5be6c836c5a084cc65b9734f544d (patch) | |
tree | 63c9a7af8f5a5a4d9d282de7a1d57249bd5a8c98 /libc/sysdeps/linux/arm/crt1.S | |
parent | 3837739512e6029786d4e70be658fde8172c3829 (diff) |
libc: fix signal handling in system()
When built without NPTL support (or for a sparc target), the system()
function doesn't conform to its specification. Namely, it uses signal()
to install/save/restore signal handlers, which may break applications
using custom handlers installed with sigaction(). In addition, it resets
the SIGCHLD handler to SIG_DFL instead of blocking the signal, which may
result in "lost" signals if a custom handler was installed.
Fix system() by replacing uses of signal() with appropriate calls to
sigaction() and sigprocmask().
Signed-off-by: Richard Braun <rbraun@sceen.net>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libc/sysdeps/linux/arm/crt1.S')
0 files changed, 0 insertions, 0 deletions