]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document that CalledProcessError.returncode is the negative
authorGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>
Fri, 3 Jun 2016 00:31:21 +0000 (00:31 +0000)
committerGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>
Fri, 3 Jun 2016 00:31:21 +0000 (00:31 +0000)
signal number when the process died due to a signal.

Doc/library/subprocess.rst

index 2ec94bfe138d5de607d5e55b0bc1d91195516d3f..67bee40acb68b20762bff3ee59fae0a029007b8c 100644 (file)
@@ -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