Skip to content
This repository has been archived by the owner on Feb 7, 2018. It is now read-only.

Commit

Permalink
Catch ECHILD errors; JRuby throws them indiscriminantly
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Yurek committed Aug 9, 2013
1 parent f26304a commit cf95ca0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/cocaine/command_line/runners/process_runner.rb
Expand Up @@ -21,7 +21,11 @@ def spawn(*args)
end

def waitpid(pid)
Process.waitpid(pid)
begin
Process.waitpid(pid)
rescue Errno::ECHILD => e
# In JRuby, waiting on a finished pid raises.
end
end

end
Expand Down

0 comments on commit cf95ca0

Please sign in to comment.