-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shutil.rmtree() gets stuck on opening named pipe #116401
Comments
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Mar 6, 2024
serhiy-storchaka
added
3.11
only security fixes
3.12
bugs and security fixes
3.13
bugs and security fixes
labels
Mar 6, 2024
serhiy-storchaka
added a commit
that referenced
this issue
Mar 13, 2024
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Mar 13, 2024
…n opening a named pipe (pythonGH-116421) (cherry picked from commit aa7bcf2) Co-authored-by: Serhiy Storchaka <[email protected]>
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Mar 13, 2024
…n opening a named pipe (pythonGH-116421) (cherry picked from commit aa7bcf2) Co-authored-by: Serhiy Storchaka <[email protected]>
serhiy-storchaka
added a commit
that referenced
this issue
Mar 13, 2024
serhiy-storchaka
added a commit
that referenced
this issue
Mar 13, 2024
vstinner
pushed a commit
to vstinner/cpython
that referenced
this issue
Mar 20, 2024
adorilson
pushed a commit
to adorilson/cpython
that referenced
this issue
Mar 25, 2024
diegorusso
pushed a commit
to diegorusso/cpython
that referenced
this issue
Apr 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug description:
When the target is a named pipe, shutil.rmtree() gets stuck on opening it.
This seems to be caused by
os.open()
withos.O_RDONLY
.cpython/Lib/shutil.py
Line 745 in 4637a1f
(This issue seems to exist on the main branch, IIUC)
Currently, it needs to check the file type and use
os.remove()
if it's a named pipe.Should this be handled inside
shutil.rmtree()
?CPython versions tested on:
3.11
Operating systems tested on:
macOS
Linked PRs
The text was updated successfully, but these errors were encountered: