Process.waitFor

Process.waitFor

Class Overview | Class Members | This Package | All Packages

Syntax
public abstract int waitFor() throws InterruptedException
Returns
the exit value of the process.
Description
Waits for the subprocess to complete. This method returns immediately if the subprocess has already terminated. If the subprocess has not yet terminated, the calling thread will be blocked until the subprocess exits.

Exceptions
InterruptedException if the waitFor was interrupted.