Skip to content

Commit

Permalink
Simplifying by using worker pid
Browse files Browse the repository at this point in the history
  • Loading branch information
mrduncan authored and defunkt committed Mar 17, 2011
1 parent f48da5f commit dbd04d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/tasks.rb
Expand Up @@ -19,7 +19,7 @@
end

if ENV['PIDFILE']
File.open(ENV['PIDFILE'], 'w') { |f| f << Process.pid.to_s }
File.open(ENV['PIDFILE'], 'w') { |f| f << worker.pid }
end

worker.log "Starting worker #{worker}"
Expand Down

0 comments on commit dbd04d6

Please sign in to comment.