[issue46364] asyncio subprocess cannot read from /dev/stdin

xoph report at bugs.python.org
Thu Jan 13 03:24:51 EST 2022


New submission from xoph <xoph at posteo.de>:

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/stdin` on 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/stdin`

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46364>
_______________________________________


More information about the Python-bugs-list mailing list