Returns the exit status of the process or 0 if the process is still running. This function returns immediately and does not wait until the process is finished.
Syntax |
exitStatus(): int |
---|---|
Result |
Return the process exit status |
If normalExit() is FALSE (e.g. if the process was killed or crashed), this function returns 0, so you should check the return value of normalExit() before relying on this value.