Skip to content

Instantly share code, notes, and snippets.

@kronos
Created March 29, 2010 13:22
Show Gist options
  • Save kronos/347825 to your computer and use it in GitHub Desktop.
Save kronos/347825 to your computer and use it in GitHub Desktop.
diff --git a/kernel/common/process.rb b/kernel/common/process.rb
index c97dade..c576f06 100644
--- a/kernel/common/process.rb
+++ b/kernel/common/process.rb
@@ -653,6 +653,7 @@ module Kernel
end
Process.waitpid(pid)
+ read.close
return output
else
read.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment