From 923fd89a2a5d52a6ec9abeb02f6edc01c721fd91 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Sat, 13 Sep 2008 15:11:17 +1000 Subject: Fixed issues with file descriptors leaking into subprocesses --- lib/puppet/util.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/puppet') diff --git a/lib/puppet/util.rb b/lib/puppet/util.rb index ff9858ed0..d6de3e2e1 100644 --- a/lib/puppet/util.rb +++ b/lib/puppet/util.rb @@ -316,6 +316,7 @@ module Util $stdin.reopen("/dev/null") $stdout.reopen(output_file) $stderr.reopen(output_file) + 3.upto(256){|fd| IO::new(fd).close rescue nil} if arguments[:gid] Process.egid = arguments[:gid] Process.gid = arguments[:gid] unless @@os == "Darwin" -- cgit