Permalink
Browse files

killing process even if the pid could not be found (PureJavaProcessMa…

…nager is unable to find pid's)
  • Loading branch information...
brunojcm committed Aug 15, 2012
1 parent 5c61d7b commit 3d67ed89fc00c513f5efad1f71b5017a94d7f7fc
@@ -205,9 +205,7 @@ public int forciblyTerminate(long retryInterval, long retryTimeout) throws IOExc
+ (this.pid != PID_UNKNOWN ? " (pid " + this.pid + ")" : ""));
if (this.pid == PID_UNKNOWN) {
long foundPid = this.processManager.findPid(new ProcessQuery("soffice.*", this.unoUrl.getAcceptString()));
- if (foundPid != PID_UNKNOWN) {
- this.processManager.kill(this.process, foundPid);
- }
+ this.processManager.kill(this.process, foundPid);
} else {
this.processManager.kill(this.process, this.pid);
}

0 comments on commit 3d67ed8

Please sign in to comment.