small cleanups in signal handling and worker init
commit60e428f204c716fd1eff3e769398c6a9eb67e072
authorEric Wong <normalperson@yhbt.net>
Mon, 13 Apr 2009 06:55:30 +0000 (12 23:55 -0700)
committerEric Wong <normalperson@yhbt.net>
Mon, 13 Apr 2009 07:09:20 +0000 (13 00:09 -0700)
tree85d8fd0e2caa7c308c2d9d0ac6ec8a92024bab7f
parent18af4dbcc14eb7765bc021f94a444cc394864c26
small cleanups in signal handling and worker init

Since signals and signal handlers are process-wide, just make
SIG_QUEUE a global constant since there's absolutely no reason
it should be otherwise...

Restore default signal handlers when building app in case our
app does anything strange or gets hung, it's nice to know
SIG{INT,TERM} can be used to kill it while it's loading.
Additionally, there's little point in clearing arrays before
nilling them: just trust the GC to do its job properly.
lib/unicorn.rb