/** * Waits until the identified process exits. If the process does * not exist then returns immediately. */ static public void waitForPidToExit(int pid) { if (pureMode) { throw new RuntimeException(LocalizedStrings.OSProcess_WAITFORPIDTOEXIT_NOT_ALLOWED_IN_PURE_JAVA_MODE.toLocalizedString()); } checkPid(pid); waitForPid(pid); }
/** * Waits until the identified process exits. If the process does * not exist then returns immediately. */ static public void waitForPidToExit(int pid) { if (pureMode) { throw new RuntimeException(LocalizedStrings.OSProcess_WAITFORPIDTOEXIT_NOT_ALLOWED_IN_PURE_JAVA_MODE.toLocalizedString()); } checkPid(pid); waitForPid(pid); }