app/exec_cgi: GC prevention
commitdf330c00577fed3c16be92129891f08f56441aef
authorEric Wong <normalperson@yhbt.net>
Sun, 3 May 2009 05:43:22 +0000 (2 22:43 -0700)
committerEric Wong <normalperson@yhbt.net>
Fri, 22 May 2009 08:54:20 +0000 (22 01:54 -0700)
tree4956bfd0298f45db2a0c071df130c5f469018498
parent772127fca59290327344e3851cbf5b0e5a4ce2df
app/exec_cgi: GC prevention

Don't allow newly created IO objects to get GC'ed and
subsequently close(2)-ed.  We're not reopening the
{$std,STD}{in,out,err} variables since those can't be
trusted to have fileno 1, 2 and 3 respectively.
lib/unicorn/app/exec_cgi.rb