1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 04:40:59 +01:00

26046: return an error if session's fd is unusable.

This commit is contained in:
Clint Adams 2008-11-15 16:58:35 +00:00
parent d7ebd94ff4
commit ac38534728
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-11-15 Clint Adams <clint@zsh.org>
* 26046: Functions/TCP/tcp_send: return an error if session's fd is
unusable.
2008-11-15 Peter Stephenson <p.w.stephenson@ntlworld.com>
* Phil (unposted): README: another typo.

View file

@ -74,6 +74,8 @@ while true; do
if [[ $? -ne 0 || -n $TCP_FD_CLOSED ]]; then
print "Session ${TCP_SESS}: fd $fd unusable." >&2
unset TCP_FD_CLOSED
mystat=1
continue
fi
if [[ -n $TCP_OUTPUT ]]; then
tcp_output -P "$TCP_OUTPUT" -S $TCP_SESS -F $fd -q "${(j. .)*}"