aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index 591aca49..5d3bd58c 100644
--- a/client.c
+++ b/client.c
@@ -46,7 +46,7 @@ sendall(int sock, const void *_buf, size_t len)
size_t left = len;
while (left > 0) {
- ssize_t r = send(sock, buf, left, 0);
+ ssize_t r = send(sock, buf, left, MSG_NOSIGNAL);
if (r < 0) {
if (errno == EINTR)
continue;