Skip to content

Commit

Permalink
Only wait on the child we fork, not on any child
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Goldstein committed Dec 21, 2011
1 parent feb4c45 commit 73f8a71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rpm_contrib/language_support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ def can_fork?
private

def test_forkability
Process.fork { exit! }
child = Process.fork { exit! }
# calling wait here doesn't seem like it should necessary, but it seems to
# resolve some weird edge cases with resque forking.
Process.wait
Process.wait child
true
rescue NotImplementedError
false
Expand Down

0 comments on commit 73f8a71

Please sign in to comment.