Obsolete
/
libipc-old
Archived
3
0
Fork 0

send(2) does not SIGPIPE anymore

more_to_read
Philippe PITTOLI 2018-10-09 16:35:44 +02:00
parent f8b239b6d0
commit b71acc89e7
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ int usock_send (const int fd, const char *buf, ssize_t len, ssize_t *sent)
{
ssize_t ret = 0;
//printf ("%ld bytes to write\n", len);
ret = send (fd, buf, len, 0);
ret = send (fd, buf, len, MSG_NOSIGNAL);
if (ret <= 0) {
handle_err ("usock_send", "send ret <= 0");
return -1;