|
|
loop.connect_read_pipe does not yet support the pipes that openpty() creates. (Which are apparently character special device files.)
The following should work:
master, slave = os.openpty()
shell_out = io.open(master, 'rb', 0)
transport, protocol = yield from loop.connect_read_pipe(MyProtocol, shell_out)
In unix_events.py, there's the following check that fails.
if not (stat.S_ISFIFO(mode) or stat.S_ISSOCK(mode)):
It should probably be replaced with something like this:
if not (stat.S_ISFIFO(mode) or stat.S_ISSOCK(mode) or stat.S_ISCHR(mode)):
(The attached test does not yet succeed. I'm not sure about it.)
|