10000 [3.9] bpo-45554: Document multiprocessing.Process.exitcode values (GH-30142) by miss-islington · Pull Request #30675 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.9] bpo-45554: Document multiprocessing.Process.exitcode values (GH-30142) #30675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed t 10000 o load files.
Loading
Diff view
Diff view
bpo-45554: Document multiprocessing.Process.exitcode values (GH-30142)
This addresses [bpo-45554]() by expanding the `exitcode` documentation to also describe what `exitcode` will be in cases of normal termination, `sys.exit()` called, and on uncaught exceptions.

Automerge-Triggered-By: GH:pitrou
(cherry picked from commit 3852269)

Co-authored-by: John Marshall <jmarshall@hey.com>
  • Loading branch information
jmarshall authored and miss-islington committed Jan 18, 2022
commit 48fce735491acb2e1eecd3aad0bc90677cdb34c7
11 changes: 9 additions & 2 deletions Doc/library/multiprocessing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,15 @@ The :mod:`multiprocessing` package mostly replicates the API of the
.. attribute:: exitcode

The child's exit code. This will be ``None`` if the process has not yet
terminated. A negative value *-N* indicates that the child was terminated
by signal *N*.
terminated.

If the child's :meth:`run` method returned normally, the exit code
will be 0. If it terminated via :func:`sys.exit` with an integer
argument *N*, the exit code will be *N*.

If the child terminated due to an exception not caught within
:meth:`run`, the exit code will be 1. If it was terminated by
signal *N*, the exit code will be the negative value *-N*.

.. attribute:: authkey

Expand Down
1 change: 1 addition & 0 deletions Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,7 @@ Vincent Marchetti
David Marek
Doug Marien
Sven Marnach
John Marshall
Alex Martelli
Dennis Mårtensson
Anthony Martin
Expand Down
0