From 662ae3f6d8c6d166884334d27988e4191bbdfbaf Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 15 Jun 2009 11:34:23 +0000 Subject: [PATCH 1/1] Stop the spawner switching to the root directory as it breaks the ability of ActionMailer to auto-locate parts for multipart emails if the current working directoy is not the rails root. There is probably a better fix for this, but this will do for now... --- .../plugins/irs_process_scripts/lib/commands/process/spawner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/plugins/irs_process_scripts/lib/commands/process/spawner.rb b/vendor/plugins/irs_process_scripts/lib/commands/process/spawner.rb index 8bf47abb7..169072c41 100644 --- a/vendor/plugins/irs_process_scripts/lib/commands/process/spawner.rb +++ b/vendor/plugins/irs_process_scripts/lib/commands/process/spawner.rb @@ -7,7 +7,7 @@ def daemonize #:nodoc: exit if fork # Parent exits, child continues. Process.setsid # Become session leader. exit if fork # Zap session leader. See [1]. - Dir.chdir "/" # Release old working directory. +# Dir.chdir "/" # Release old working directory. File.umask 0000 # Ensure sensible umask. Adjust as needed. STDIN.reopen "/dev/null" # Free file descriptors and STDOUT.reopen "/dev/null", "a" # point them somewhere sensible. -- 2.43.2