exitValue

public int exitValue()

Returns the exit value for the subprocess.

Return

the exit value of the subprocess represented by this Process object. by convention, the value 0 indicates normal termination.

Throws

if the subprocess represented by this ManagedProcess object has not yet terminated, or has terminated without an exit value.

if interrupted while waiting