Skip to content

Commit

Permalink
Allow the child process to be already gone
Browse files Browse the repository at this point in the history
  • Loading branch information
pitr-ch committed Feb 5, 2020
1 parent 9cfbd78 commit f2de94a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/concurrent/executor/cached_thread_pool_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ module Concurrent
pid = spawn RbConfig.ruby, test_file
Process.waitpid pid
expect($?.success?).to eq true
rescue Errno::ECHILD
# child already gone
rescue Timeout::Error => e
Process.kill :KILL, pid
raise e
Expand Down

0 comments on commit f2de94a

Please sign in to comment.