Use {read,write}_nonblock on the pipe
commit7dd3d804e9199a201aa62b7f7e7c28ddeace99c5
authorEric Wong <normalperson@yhbt.net>
Tue, 31 Mar 2009 07:37:49 +0000 (31 00:37 -0700)
committerEric Wong <normalperson@yhbt.net>
Tue, 31 Mar 2009 07:37:49 +0000 (31 00:37 -0700)
tree2795914d27c5ceac291f9b8dd588b6fd644022ae
parent6ab8a56ed27320746cf6d95a1b3e9fe4ddb99d75
Use {read,write}_nonblock on the pipe

Instead of trusting sysread/syswrite to throw EAGAIN if the pipe
is full (highly unlikely); just use non-blocking methods which
are indeed non-blocking and don't care for the #blocking= method
added to it.
lib/unicorn.rb