From f2a1a103aaaf6b390f8f3b7aeb496545f5048876 Mon Sep 17 00:00:00 2001 From: luke Date: Thu, 19 Jul 2007 00:52:54 +0000 Subject: 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 --- lib/puppet/util.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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) -- cgit