summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-08-16 17:18:09 -0700
committerEric Wong <normalperson@yhbt.net>2009-08-16 17:18:41 -0700
commit499d42c808347a598dabe8e7922778df29339f15 (patch)
tree22fc03c88f516becf2eb30f0d880a5aaf3fc1700
parent4cecac01518c6d48f749a34d4f56842429c2ccbc (diff)
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).
-rw-r--r--lib/unicorn/app/inetd.rb2
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