app/exec_cgi: GC prevention
commit62496dd0d777356b90029518763501a4cd70a4e3
authorEric Wong <normalperson@yhbt.net>
Sun, 3 May 2009 05:43:22 +0000 (2 22:43 -0700)
committerEric Wong <normalperson@yhbt.net>
Sun, 3 May 2009 05:43:46 +0000 (2 22:43 -0700)
tree1d4dad7312e58d6cd3b601fa8c0d432ac19b9c57
parent309cf04cb78971370794ea60cc724bfd5421ca53
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