exitCode

fun exitCode(): Int(source)

Returns the exit code for which the process completed with.

Throws

IllegalStateException

if the Process has not exited yet