]> git.ipfire.org Git - thirdparty/glibc.git/commit
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)
committerMike Frysinger <vapier@gentoo.org>
Sat, 12 Nov 2016 05:44:32 +0000 (00:44 -0500)
commitd9bd52a8f845f1330d794be4e984fb1bdc587efb
tree2b1aa1ff73e7222151aa5123b829bbc9497fca9b
parenta6bb6430afb72aaa362e508be98f7b7dd1bfd13e
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.

(cherry picked from commit 56290d6e762c1194547e73ff0b948cd79d3a1e03)
(cherry picked from commit 2143af6a47027c48d8dc168e255d8f527377bc56)
malloc/Makefile
malloc/tst-mallocfork2.c [new file with mode: 0644]
sysdeps/nptl/fork.c