diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-07-19 00:52:54 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-07-19 00:52:54 +0000 |
| commit | f2a1a103aaaf6b390f8f3b7aeb496545f5048876 (patch) | |
| tree | 809de98516a49685d9394885e9af572916ccd0e1 /lib/puppet | |
| parent | fdd2d4955ba2fda2b446e5de9d55c9bdbbe67131 (diff) | |
| download | puppet-f2a1a103aaaf6b390f8f3b7aeb496545f5048876.tar.gz puppet-f2a1a103aaaf6b390f8f3b7aeb496545f5048876.tar.xz puppet-f2a1a103aaaf6b390f8f3b7aeb496545f5048876.zip | |
Hopefully fixing #640, and maybe some warnings at the same time. I added a call to Process.setsid after the fork, and I chdir'd to /.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2711 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet')
| -rw-r--r-- | lib/puppet/util.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet/util.rb b/lib/puppet/util.rb index a3d84b5c6..33c8eac91 100644 --- a/lib/puppet/util.rb +++ b/lib/puppet/util.rb @@ -315,6 +315,8 @@ module Util child_status = Process.waitpid2(child_pid)[1] else # Child process executes this + Process.setsid + Dir.chdir("/") begin $stdin.reopen("/dev/null") $stdout.reopen(output_file) |
