From b71acc89e7db99b86726cf07e48005e08eda6e0d Mon Sep 17 00:00:00 2001
From: Philippe PITTOLI
Date: Tue, 9 Oct 2018 16:35:44 +0200
Subject: [PATCH] send(2) does not SIGPIPE anymore
---
core/usocket.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/usocket.c b/core/usocket.c
index 876ec53..794e194 100644
--- a/core/usocket.c
+++ b/core/usocket.c
@@ -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;