Increase fork signal safety for single-threaded processes [BZ #19703]
authorFlorian Weimer <fweimer@redhat.com>
Thu, 12 May 2016 06:54:17 +0000 (08:54 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 12 May 2016 13:26:55 +0000 (15:26 +0200)
commit56290d6e762c1194547e73ff0b948cd79d3a1e03
treec6025736ee13b24a908e7d12496d47b636592345
parentcd065b68439076971640047cc6eaada27dcfd0f7
Increase fork signal safety for single-threaded processes [BZ #19703]

This provides a band-aid and addresses the scenario where fork is
called from a signal handler while the process is in the malloc
subsystem (or has acquired the libio list lock).  It does not
address the general issue of async-signal-safety of fork;
multi-threaded processes are not covered, and some glibc
subsystems have fork handlers which are not async-signal-safe.
ChangeLog
malloc/Makefile
malloc/tst-mallocfork2.c [new file with mode: 0644]
sysdeps/nptl/fork.c