waitFor

fun waitFor(): Int

Waits for the child process to exit and returns its exit code.

Return

exit code of the process.

Throws

if thread waiting is interrupted.