From 09e4117cc19dd94efbdad6edde9bc7d715a58a9a Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Fri, 18 Jun 2004 12:54:53 +0000 Subject: sk_write bugfix for BSD. --- sysdep/unix/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdep') diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index ed5b89fa..f68763cc 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -1025,7 +1025,7 @@ sk_write(sock *s) { sockaddr sa; fill_in_sockaddr(&sa, s->daddr, s->dport); - if (connect(s->fd, (struct sockaddr *) &sa, sizeof(sa)) >= 0) + if (connect(s->fd, (struct sockaddr *) &sa, sizeof(sa)) >= 0 || errno == EISCONN) sk_tcp_connected(s); else if (errno != EINTR && errno != EAGAIN && errno != EINPROGRESS) s->err_hook(s, errno); -- cgit v1.2.3