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

This commit is contained in:
John Blum
2022-10-17 09:18:43 -07:00
parent d52c7e1428
commit 9388d9d829

View File

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