1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Timo Sirainen 2000-07-29 15:35:45 +00:00 committed by cras
parent 85b669b6f4
commit ca402b6f66

View File

@ -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;