avoid race condition during worker startup
commit9b565f1808a16bc63e9e15e2cbe77d947c502706
authorEric Wong <e@80x24.org>
Sat, 1 Feb 2014 20:23:22 +0000 (1 20:23 +0000)
committerEric Wong <e@80x24.org>
Sat, 1 Feb 2014 20:23:22 +0000 (1 20:23 +0000)
treed90927d9abb79138b6f6e88725ffe7f60f87d50c
parentcce86f545998d16e4e5d4160aa6f1beed8a2df80
avoid race condition during worker startup

We close SELF_PIPE in the worker immediately, but signal handlers
do not get setup immediately.  So prevent workers from erroring out
due to invalid SELF_PIPE.
lib/unicorn/http_server.rb