mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04: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:
parent
85b669b6f4
commit
ca402b6f66
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user