[issue29054] pty.py: pty.spawn hangs after client disconnect over nc (netcat)
Cornelius Diekmann
report at bugs.python.org
Fri Jan 6 07:37:37 EST 2017
Cornelius Diekmann added the comment:
[no status change, this issue currently does NOT need any attention]
To keep issues separate, I just wanted to document a comment about this issue mentioned in issue29070. It refers to the _copy loop.
if STDIN_FILENO in rfds:
data = stdin_read(STDIN_FILENO)
if not data:
fds.remove(STDIN_FILENO)
+ # Proposal for future behavior change: Signal EOF to
+ # slave if STDIN of master is gone. Solves issue29054.
+ # os.write(master_fd, b'\x04')
else:
_writen(master_fd, data)
> vadmium 2017/01/04 21:50:26
> I suggest leaving this for the other [issue29054, i.e. this] bug. Another option may be to send SIGHUP
> (though I am far from an expert on Unix terminals :).
http://bugs.python.org/review/29070/diff/19626/Lib/pty.py
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29054>
_______________________________________
More information about the Python-bugs-list
mailing list