From 583a1d62402a500994734473d83af8aa36b45b82 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)" Date: Fri, 3 Jun 2016 00:31:21 +0000 Subject: Document that CalledProcessError.returncode is the negative signal number when the process died due to a signal. --- Doc/library/subprocess.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v0.12