From ac38534728b2980d1e4b3422453322546b975062 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sat, 15 Nov 2008 16:58:35 +0000 Subject: 26046: return an error if session's fd is unusable. --- Functions/TCP/tcp_send | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Functions/TCP') 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. .)*}" -- cgit 1.4.1