You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
asyncio subprocess cannot read from /dev/stdin #90522
It seems while subprocess uses a pipe, asyncio uses socket.socketpair() to communicate with the subprocess which in turn appears to fail for /dev/stdin
Activity
xopham commentedon Jan 13, 2022
asyncio.create_subprocess_exec and asyncio.create_subprocess_shell fail with "No such device or address" when called on a program that attempts to invoke
/dev/stdinon Linux.This happens in contrast to the subprocess module and was discussed in the this thread: https://stackoverflow.com/questions/70624413/how-to-read-from-dev-stdin-with-asyncio-create-subprocess-exec
It seems while subprocess uses a pipe, asyncio uses socket.socketpair() to communicate with the subprocess which in turn appears to fail for
/dev/stdinasvetlov commentedon Jan 13, 2022
True. Would you make a pull request that uses socketpair on AIX only?
A test for desired behavior is required.
xopham commentedon Feb 1, 2022
Created a PR: #30596
It's ready for review. Happy about any feedback!
pythongh-90522: add test
pythongh-90522: add test
xopham commentedon Aug 19, 2022
@1st1 @asvetlov the associated PR is ready, including tests. It's a small change. Would be happy to move this forward and resolve the issue 🙂
pythongh-90522: add test