From ca402b6f669327116784b1b17399ff26dc9cd062 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 29 Jul 2000 15:35:45 +0000 Subject: [PATCH] send() - ignore EPIPE return value and just return "0 bytes sent". The broken connection will be noticed after recv(). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@547 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/network.c b/src/core/network.c index 97816ffb..7c800ac1 100644 --- a/src/core/network.c +++ b/src/core/network.c @@ -281,7 +281,7 @@ int net_transmit(int handle, const char *data, int len) n = send(handle, data, len, 0); if (n == -1 && (errno == EWOULDBLOCK || errno == EAGAIN || - errno == EINTR)) + errno == EINTR || errno == EPIPE)) return 0; return n > 0 ? n : -1;