public static int procWait ( Process process ) throws OSHelperException { try { return process . waitFor ( ) ; } catch ( InterruptedException ex ) { throw new OSHelperException ( "Received an InterruptedException when waiting for an external process to terminate." , ex ) ; } }
Waits for a specified process to terminate