Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: unusable fd in tcp_send



On Sat, Nov 15, 2008 at 04:32:28PM +0000, Peter Stephenson wrote:
> That sounds like it makes sense.

Index: Functions/TCP/tcp_send
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/TCP/tcp_send,v
retrieving revision 1.4
diff -u -r1.4 tcp_send
--- Functions/TCP/tcp_send	8 Aug 2006 11:27:40 -0000	1.4
+++ Functions/TCP/tcp_send	15 Nov 2008 16:45:37 -0000
@@ -74,6 +74,8 @@
     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. .)*}"



Messages sorted by: Reverse Date, Date, Thread, Author