Skip to content
Browse files

Rescue from Errno::ESRCH in the exit hook in case webkit_server has a…

…lready ended.
  • Loading branch information...
1 parent 9a8279a commit 701566341cda4696250ec201e158e02619feb151 @seangeo seangeo committed with mhoran Dec 12, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/capybara/webkit/connection.rb
View
2 lib/capybara/webkit/connection.rb
@@ -62,6 +62,8 @@ def kill_process
else
Process.kill("INT", @pid)
end
+ rescue Errno::ESRCH
+ # This just means that the webkit_server process has already ended
end
def discover_port

0 comments on commit 7015663

Please sign in to comment.
Something went wrong with that request. Please try again.