exitCode

The subprocess.exitCode property indicates the exit code of the child process. If the child process is still running, the field will be null.