diff options
author | Allison Karlitskaya <allison.karlitskaya@redhat.com> | 2023-12-24 00:43:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-24 00:43:39 (GMT) |
commit | 0187a7e4ec9550a6e35dd06b26f22863520242ab (patch) | |
tree | 0113b3448a127d2f00b8eccf2eca27aa06e524ea /Misc | |
parent | ca71987f4e3be56a369a1dd57763c6077b3c4899 (diff) | |
download | cpython-0187a7e4ec9550a6e35dd06b26f22863520242ab.zip cpython-0187a7e4ec9550a6e35dd06b26f22863520242ab.tar.gz cpython-0187a7e4ec9550a6e35dd06b26f22863520242ab.tar.bz2 |
gh-112800: Ignore PermissionError on SubprocessTransport.close() in asyncio (#112803)
In case the spawned process is setuid, we may not be able to send
signals to it, in which case our .kill() call will raise
PermissionError.
Ignore that in order to avoid .close() raising an exception. Hopefully
the process will exit as a result of receiving EOF on its stdin.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-12-06-16-01-33.gh-issue-112800.TNsGJ-.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-12-06-16-01-33.gh-issue-112800.TNsGJ-.rst b/Misc/NEWS.d/next/Library/2023-12-06-16-01-33.gh-issue-112800.TNsGJ-.rst new file mode 100644 index 0000000..e88eac1 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-12-06-16-01-33.gh-issue-112800.TNsGJ-.rst @@ -0,0 +1,2 @@ +Fix :mod:`asyncio` ``SubprocessTransport.close()`` not to throw +``PermissionError`` when used with setuid executables. |