From b1ce9404c6aaf3105377489bfc8d0bf27ad67b3b Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Tue, 13 Feb 2007 21:29:33 +0100 Subject: [PATCH] It looks like send() can give us EAGAIN even if epoll() said the socket was ready (after all, we don't check the events bits). Just ignore that. --- jam.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jam.c b/jam.c index eb7dc1a..581d51c 100644 --- a/jam.c +++ b/jam.c @@ -251,6 +251,9 @@ void *sender_worker(void *arg) ret = send(s->fd, buf, bytes_to_send, MSG_NOSIGNAL); if (ret == -1) { + if (errno == EAGAIN) + continue; + perror("send()"); exit(1); } -- 2.39.2