speed up QUIT for users of the unicorn worker_loop
commit4e42b60205ebb2ead8535e77658ccffb206346f1
authorEric Wong <e@80x24.org>
Thu, 15 Oct 2015 01:37:33 +0000 (15 01:37 +0000)
committerEric Wong <e@80x24.org>
Thu, 15 Oct 2015 18:46:17 +0000 (15 18:46 +0000)
tree7ff037ec51ee7f732138a3be5c10b0edca7123ee
parent98819daf5c638fec4d20bb3960e0d3188e772ab8
speed up QUIT for users of the unicorn worker_loop

WriterThreadPool, WriterThreadSpawn, Base, and potentially
other rarely-used concurrency options experienced slow shutdowns
due to the destruction of a listener socket failing to wake up
a thread in IO.select.

Send ourselves a signal to interrupt the IO.select call in
the main thread to force the wakeup.
lib/rainbows.rb