Skip to content

Commit

Permalink
java: Fixing diagnostics of process destruction
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Jun 9, 2015
1 parent 28e4d9c commit 7a5e890
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions java/client/src/org/openqa/selenium/os/UnixProcess.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public int destroy() {
if (!isRunning()) {
return getExitCode();
}
log.info("Command failed to close cleanly. Destroying forcefully (v2). " + this);
}

watchdog.destroyHarder();
Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 7a5e890

Please sign in to comment.