diff --git a/lib/resque/worker.rb b/lib/resque/worker.rb index cc31f6f95..585c8ae2a 100644 --- a/lib/resque/worker.rb +++ b/lib/resque/worker.rb @@ -135,7 +135,7 @@ def work(interval = 5.0, &block) if @child = fork srand # Reseeding procline "Forked #{@child} at #{Time.now.to_i}" - Process.wait + Process.wait(@child) else procline "Processing #{job.queue} since #{Time.now.to_i}" perform(job, &block)