about summary refs log tree commit homepage
path: root/GIT-VERSION-GEN
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-07-13 08:57:37 +0000
committerEric Wong <normalperson@yhbt.net>2010-07-13 09:11:58 +0000
commit883e76b12d6034e5750d662c9e4f453888dbd154 (patch)
treed5ac46ffff67a54fd9cbfcbfdf861e76780d20d4 /GIT-VERSION-GEN
parent430c8cc9f8b5f1db9395531df4ebab655da5d958 (diff)
downloadunicorn-883e76b12d6034e5750d662c9e4f453888dbd154.tar.gz
As described in our SIGNALS documentation, sending SIGHUP to the
old master (to respawn SIGWINCH-ed children) while the new
master (spawned from SIGUSR2) is active is useful for backing
out of an upgrade before sending SIGQUIT to the new master.

Unfortunately, the SIGHUP signal to the old master will cause
the ".oldbin" pid file to be reset to the non-".oldbin" version
and thus attempt to clobber the pid file in use by the
to-be-terminated new master process.

Thanks to the previous commit to prevent redaemonization in the
new master, the old master can reliably detect if the new master
is active while it is reloading the config file.

Thanks to Lawrence Pit for discovering this bug.
ref: http://mid.gmane.org/4C3BEACF.7040301@gmail.com
(cherry picked from commit c13bec3449396b21795966101367838161612d61)
Diffstat (limited to 'GIT-VERSION-GEN')
0 files changed, 0 insertions, 0 deletions