Refactor ProcessWrapper.safeGetPid() to ignore all Throwable objects.

This commit is contained in:
John Blum
2022-10-17 09:18:43 -07:00
parent c85f120b40
commit b6d043ae14

View File

@@ -180,7 +180,7 @@ public class ProcessWrapper {
try {
return getPid();
}
catch (PidNotFoundException ignore) {
catch (Throwable ignore) {
return -1;
}
}