gui.jobs.JobExit(returncode, cancelled=False)
The end of a child process. It is always the last event of a job.
Attributes
| returncode |
int |
The exit code of the child; negative for a signal (-2 is SIGINT). |
| cancelled |
bool |
Whether SubprocessJob.cancel was called. |
Examples
import sys
from spotregen.gui.jobs import SubprocessJob
job = SubprocessJob([sys.executable, "-c", "raise SystemExit(3)"], cwd=".")
job.start()
job.wait()
print(job.poll()[-1])
JobExit(returncode=3, cancelled=False)