From a609ab7e471d7ba7598e2e2c913168a5e95b129b Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Tue, 24 Jul 2018 17:23:57 -0400 Subject: Revert "Do not set non-blocking on client sockets" This reverts commit f4da47cb0ee659472b563b9e6443663c62a69996. There actually are adverse effects. --- server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server.c b/server.c index f34c802..89ba03c 100644 --- a/server.c +++ b/server.c @@ -350,6 +350,7 @@ int main() { if (!event.udata) { int fd = accept(server, NULL, NULL); if (fd < 0) err(EX_IOERR, "accept"); + fcntl(fd, F_SETFL, O_NONBLOCK); int on = 1; error = setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &on, sizeof(on)); -- cgit 1.4.1