Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.14] gh-138234: clarify returncode behavior for subprocesses created withshell=True (GH-138536)#146254

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes fromall 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 deletionsDoc/library/asyncio-subprocess.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -311,8 +311,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
5 changes: 5 additions & 0 deletionsDoc/library/subprocess.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -952,6 +952,11 @@ Reassigning them to new values is unsupported:
A negative value ``-N`` indicates that the child was terminated by signal
``N`` (POSIX only).

When ``shell=True``, 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.


Windows Popen Helpers
---------------------
Expand Down
Loading

[8]ページ先頭

©2009-2026 Movatter.jp