diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-29 15:35:45 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-29 15:35:45 +0000 |
commit | ca402b6f669327116784b1b17399ff26dc9cd062 (patch) | |
tree | f280c371c6627d86125dffef82eb9ecc52d0aee1 /src/core | |
parent | 85b669b6f4efd455722d624640cdaa84d19b23ba (diff) | |
download | irssi-ca402b6f669327116784b1b17399ff26dc9cd062.zip |
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
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/network.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |