waitFor
Waits for the child process to exit and returns its exit code.
Return
exit code of the process.
Throws
if thread waiting is interrupted.
Waits for the child process to exit and returns its exit code.
exit code of the process.
if thread waiting is interrupted.