Skip to content

Commit 78d9e8e

Browse files
committed
Handle unknown TERM signal on Windows
Process.kill('TERM') raises Errno::EINVAL on Windows
1 parent 0ecc50c commit 78d9e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rb/lib/selenium/webdriver/common/child_process.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def stop(timeout = 3)
7070
poll_for_exit(timeout)
7171

7272
WebDriver.logger.debug(" -> stopped #{@pid}")
73-
rescue TimeoutError
73+
rescue TimeoutError, Errno::EINVAL
7474
WebDriver.logger.debug(" -> sending KILL to process: #{@pid}")
7575
kill(@pid)
7676
wait

0 commit comments

Comments
 (0)