Skip to content

Commit

Permalink
Merge pull request resque#307 from dpiddy/master
Browse files Browse the repository at this point in the history
Change worker child exit to use `exit` instead of `exit!`
  • Loading branch information
defunkt committed May 26, 2011
2 parents 8e7c205 + f3bbf99 commit 8662707
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -3,6 +3,7 @@ source :rubygems
gemspec

group :test do
gem "rake"
gem "rack-test", "~> 0.5"
gem "mocha", "~> 0.9.7"
gem "leftright", :platforms => :mri_18
Expand Down
4 changes: 2 additions & 2 deletions lib/resque/worker.rb
Expand Up @@ -128,7 +128,7 @@ def work(interval = 5.0, &block)
else
procline "Processing #{job.queue} since #{Time.now.to_i}"
perform(job, &block)
exit! unless @cant_fork
exit unless @cant_fork
end

done_working
Expand Down Expand Up @@ -302,7 +302,7 @@ def kill_child
def paused?
@paused
end

# Stop processing jobs after the current one has completed (if we're
# currently running one).
def pause_processing
Expand Down

0 comments on commit 8662707

Please sign in to comment.