summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>2016-06-03 00:31:21 (GMT)
committerGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>2016-06-03 00:31:21 (GMT)
commit583a1d62402a500994734473d83af8aa36b45b82 (patch)
treedc75fa85889e37f2668014f3349fd0d37c55bddb
parentdd4fcf52f41116479c8d337b0dcfae2287d6ae4d (diff)
downloadcpython-583a1d62402a500994734473d83af8aa36b45b82.zip
cpython-583a1d62402a500994734473d83af8aa36b45b82.tar.gz
cpython-583a1d62402a500994734473d83af8aa36b45b82.tar.bz2
Document that CalledProcessError.returncode is the negative
signal number when the process died due to a signal.
-rw-r--r--Doc/library/subprocess.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index 2ec94bf..67bee40 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -188,7 +188,8 @@ compatibility with older versions, see the :ref:`call-function-trio` section.
.. attribute:: returncode
- Exit status of the child process.
+ Exit status of the child process. If the process exited due to a
+ signal, this will be the negative signal number.
.. attribute:: cmd