app/inetd: explicitly close pipe descriptors on CatBody#close
commit499d42c808347a598dabe8e7922778df29339f15
authorEric Wong <normalperson@yhbt.net>
Mon, 17 Aug 2009 00:18:09 +0000 (16 17:18 -0700)
committerEric Wong <normalperson@yhbt.net>
Mon, 17 Aug 2009 00:18:41 +0000 (16 17:18 -0700)
tree22fc03c88f516becf2eb30f0d880a5aaf3fc1700
parent4cecac01518c6d48f749a34d4f56842429c2ccbc
app/inetd: explicitly close pipe descriptors on CatBody#close

Since Rack permits body objects to have #close called on
them, we can safely close our pipe readers immediately
instead of waiting on the GC to close them (like we do for
TeeInput tempfiles).
lib/unicorn/app/inetd.rb