Skip to content
Open
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 to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions Doc/library/asyncio-subprocess.rst
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,16 @@ their completion.

A ``None`` value indicates that the process has not terminated yet.

A negative value ``-N`` indicates that the child was terminated
by signal ``N`` (POSIX only).
For processes created with :func:`~asyncio.create_subprocess_exec`, a negative
value ``-N`` indicates that the child was terminated by signal ``N``
(POSIX only).

For processes created with :func:`~asyncio.create_subprocess_shell`, the
return code reflects the exit status of the shell itself (e.g. ``/bin/sh``),
which may map signals to codes such as ``128+N``. See the
documentation of the shell (for example, the Bash manual's Exit Status)
for details.



.. _asyncio-subprocess-threads:
Expand Down
Loading