Permalink
Browse files

Bug fix: Restarting lost workers was giving them the wrong number

  • Loading branch information...
1 parent b089940 commit 25be6e0e61e5c0ccd0dfa59294222b4a54bf595b @andrewtimberlake committed Nov 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cascade/master.rb
View
@@ -82,7 +82,7 @@ def reap_all_workers
index = CHILDREN.index(pid)
break unless index #If we're reducing the children through SIGTTOU then we won't find the child and we don't want to refork
unless $exit
- CHILDREN[index] = fork_worker(index+1)
+ CHILDREN[index] = fork_worker(index)
end
end
rescue Errno::ECHILD

0 comments on commit 25be6e0

Please sign in to comment.