]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/plugins/irs_process_scripts/lib/commands/process/spawner.rb
Stop the spawner switching to the root directory as it breaks the
[rails.git] / 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.