X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/719a06fdfa6eaf0244650c74e64ae5f9904fe865..66bdade7439376a28546d3a723d72727756cd836:/vendor/plugins/irs_process_scripts/lib/commands/process/spawner.rb 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.