Subprocess.getExitStatus

Check the exit status of the subprocess, given that it exited normally. This is the value passed to the exit() system call or the return value from main.

This is equivalent to the system WEXITSTATUS macro.

It is an error to call this function before Subprocess.wait and unless Subprocess.getIfExited returned TRUE.

class Subprocess
int
getExitStatus
()

Return Value

Type: int

the exit status

Meta

Since

2.40