Skip to content

Commit 7a5e890

Browse files
committed
java: Fixing diagnostics of process destruction
1 parent 28e4d9c commit 7a5e890

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

java/client/src/org/openqa/selenium/os/UnixProcess.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ public int destroy() {
119119
if (!isRunning()) {
120120
return getExitCode();
121121
}
122+
log.info("Command failed to close cleanly. Destroying forcefully (v2). " + this);
122123
}
123124

124125
watchdog.destroyHarder();
@@ -243,9 +244,7 @@ private void waitForTerminationAfterDestroy(int duration, TimeUnit unit) {
243244
}
244245

245246
private void destroyHarder() {
246-
log.info("Command failed to close cleanly. Destroying forcefully (v2). " + this);
247-
Process ourProc = process;
248-
ProcessUtils.killProcess(ourProc);
247+
ProcessUtils.killProcess(process);
249248
}
250249
}
251250

0 commit comments

Comments
 (0)