diff --git a/java/client/src/org/openqa/selenium/os/UnixProcess.java b/java/client/src/org/openqa/selenium/os/UnixProcess.java index cd7af38cfc223..555eee1c5e9ea 100644 --- a/java/client/src/org/openqa/selenium/os/UnixProcess.java +++ b/java/client/src/org/openqa/selenium/os/UnixProcess.java @@ -119,6 +119,7 @@ public int destroy() { if (!isRunning()) { return getExitCode(); } + log.info("Command failed to close cleanly. Destroying forcefully (v2). " + this); } watchdog.destroyHarder(); @@ -243,9 +244,7 @@ private void waitForTerminationAfterDestroy(int duration, TimeUnit unit) { } private void destroyHarder() { - log.info("Command failed to close cleanly. Destroying forcefully (v2). " + this); - Process ourProc = process; - ProcessUtils.killProcess(ourProc); + ProcessUtils.killProcess(process); } }