avoid the thread-ptr-init behavior of sigaction when not installing handler
authorRich Felker <dalias@aerifal.cx>
Fri, 12 Oct 2012 02:51:05 +0000 (22:51 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 12 Oct 2012 02:51:05 +0000 (22:51 -0400)
commit964e9f3c4c8776820e98c967f3a411d4ca5075a7
tree7242af337a05f398e3e25bd9e30b98f3ab47cae6
parent12e9b4faf68a1a02ebf5ad69c03ac10f170f14cb
avoid the thread-ptr-init behavior of sigaction when not installing handler

this is necessary because posix_spawn calls sigaction after vfork, and
if the thread pointer is not already initialized, initializing it in
the child corrupts the parent process's state.
src/signal/sigaction.c