diff options
author | James Turnbull <james@lovedthanlost.net> | 2008-09-13 15:11:17 +1000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2008-09-13 15:15:23 +1000 |
commit | 923fd89a2a5d52a6ec9abeb02f6edc01c721fd91 (patch) | |
tree | 54f99d0b40058a474ce0fcf5ece7f2d0ff2fcf8a /lib/puppet | |
parent | cab5d85dea17f3ea09343955f29eb47c8b32a05d (diff) | |
download | puppet-923fd89a2a5d52a6ec9abeb02f6edc01c721fd91.tar.gz puppet-923fd89a2a5d52a6ec9abeb02f6edc01c721fd91.tar.xz puppet-923fd89a2a5d52a6ec9abeb02f6edc01c721fd91.zip |
Fixed issues with file descriptors leaking into subprocesses
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/util.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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" |