Restore unlinked UNIX sockets on SIGHUP
commit0bd8cb742eadf45969133c13ebc5252b5234ef92
authorEric Wong <normalperson@yhbt.net>
Fri, 10 Apr 2009 20:52:46 +0000 (10 13:52 -0700)
committerEric Wong <normalperson@yhbt.net>
Fri, 10 Apr 2009 20:55:34 +0000 (10 13:55 -0700)
treebd9a84635ff6edc7514fd62147355bed9c603653
parentd26976166a5d3ea5711f0ffd0811ee912723bdab
Restore unlinked UNIX sockets on SIGHUP

Sockets may be unintentionally unlinked on the filesystem.
When reloading our config, ensure that the socket exists
on the filesystem.  If not, close the listener (since it's
unusable by outside apps) and reopen it.
lib/unicorn.rb
test/exec/test_exec.rb