Refactor ProcessWrapper.safeGetPid() to ignore all Throwable objects.
This commit is contained in:
@@ -180,7 +180,7 @@ public class ProcessWrapper {
|
||||
try {
|
||||
return getPid();
|
||||
}
|
||||
catch (PidNotFoundException ignore) {
|
||||
catch (Throwable ignore) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user