socket-handler: Use MSG_NOSIGNAL

We handle -EPIPE in the error path, no need for a signal on send.

Change-Id: I709262bcda141642d57188e0a2de15e9ddb061b0
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
diff --git a/socket-handler.c b/socket-handler.c
index 6ebe10e..d9888b9 100644
--- a/socket-handler.c
+++ b/socket-handler.c
@@ -92,9 +92,12 @@
 {
 	size_t pos;
 	ssize_t rc;
+	int flags;
+
+	flags = MSG_DONTWAIT | MSG_NOSIGNAL;
 
 	for (pos = 0; pos < len; pos += rc) {
-		rc = send(client->fd, buf + pos, len - pos, MSG_DONTWAIT);
+		rc = send(client->fd, buf + pos, len - pos, flags);
 		if (rc < 0) {
 			if (errno == EAGAIN || errno == EWOULDBLOCK)
 				break;