diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-08-16 17:18:09 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-08-16 17:18:41 -0700 |
commit | 499d42c808347a598dabe8e7922778df29339f15 (patch) | |
tree | 22fc03c88f516becf2eb30f0d880a5aaf3fc1700 /lib | |
parent | 4cecac01518c6d48f749a34d4f56842429c2ccbc (diff) | |
download | unicorn-499d42c808347a598dabe8e7922778df29339f15.tar.gz |
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).
Diffstat (limited to 'lib')
-rw-r--r-- | lib/unicorn/app/inetd.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/unicorn/app/inetd.rb b/lib/unicorn/app/inetd.rb index 580b456..145cea7 100644 --- a/lib/unicorn/app/inetd.rb +++ b/lib/unicorn/app/inetd.rb @@ -85,6 +85,8 @@ module Unicorn::App errors.write("Failed to reap #{str} (PID:#{pid})\n") end } + out_rd.close + err_rd.close end end |