]> git.openstreetmap.org Git - rails.git/commitdiff
Stop the spawner switching to the root directory as it breaks the
authorTom Hughes <tom@compton.nu>
Mon, 15 Jun 2009 11:34:23 +0000 (11:34 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 15 Jun 2009 11:34:23 +0000 (11:34 +0000)
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...

vendor/plugins/irs_process_scripts/lib/commands/process/spawner.rb

index 8bf47abb755d5ca0e33c7b917e75280b927501d5..169072c415c127f2ea0efa0d024e5e534905ebe8 100644 (file)
@@ -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.