diff options
author | Clint Adams <clint@users.sourceforge.net> | 2008-11-15 16:58:35 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2008-11-15 16:58:35 +0000 |
commit | ac38534728b2980d1e4b3422453322546b975062 (patch) | |
tree | 8611ccaf98fcfa96440ff02780cc8b798b10bb75 | |
parent | d7ebd94ff40ee6a38b363ae838b21af3c6913ecb (diff) | |
download | zsh-ac38534728b2980d1e4b3422453322546b975062.tar.gz zsh-ac38534728b2980d1e4b3422453322546b975062.tar.xz zsh-ac38534728b2980d1e4b3422453322546b975062.zip |
26046: return an error if session's fd is unusable.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Functions/TCP/tcp_send | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 7190900b5..c31491971 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/Functions/TCP/tcp_send b/Functions/TCP/tcp_send index d5edf05bd..c976a2fb7 100644 --- a/Functions/TCP/tcp_send +++ b/Functions/TCP/tcp_send @@ -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. .)*}" |