lib/resque/tasks.rb in resque-1.24.1 vs lib/resque/tasks.rb in resque-1.25.0.pre
- old
+ new
@@ -27,10 +27,10 @@
if ENV['BACKGROUND']
unless Process.respond_to?('daemon')
abort "env var BACKGROUND is set, which requires ruby >= 1.9"
end
- Process.daemon(true)
+ Process.daemon(true, true)
end
if ENV['PIDFILE']
File.open(ENV['PIDFILE'], 'w') { |f| f << worker.pid }
end