summary refs log tree commit diff
path: root/listen.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-10-24 17:37:01 -0400
committerJune McEnroe <june@causal.agency>2019-10-24 17:37:01 -0400
commit5e07e46fade9081b0271ef0e786c1b041123a809 (patch)
tree05aa1bb99df3cf5f92f78a60e20741cdbfeb08e5 /listen.c
parentIntercept client QUIT (diff)
downloadpounce-5e07e46fade9081b0271ef0e786c1b041123a809.tar.gz
pounce-5e07e46fade9081b0271ef0e786c1b041123a809.zip
Unset non-blocking on clients
I figure I'll actually use POLLOUT on clients so should never have
issues.
Diffstat (limited to 'listen.c')
-rw-r--r--listen.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/listen.c b/listen.c
index 2d83462..1179a8b 100644
--- a/listen.c
+++ b/listen.c
@@ -15,7 +15,6 @@
  */
 
 #include <err.h>
-#include <fcntl.h>
 #include <netdb.h>
 #include <netinet/in.h>
 #include <stdlib.h>
@@ -81,7 +80,6 @@ size_t listenBind(int fds[], size_t cap, const char *host, const char *port) {
 int listenAccept(struct tls **client, int fd) {
 	int sock = accept(fd, NULL, NULL);
 	if (sock < 0) err(EX_IOERR, "accept");
-	fcntl(sock, F_SETFL, O_NONBLOCK);
 
 	int yes = 1;
 	int error = setsockopt(sock, SOL_SOCKET, SO_NOSIGPIPE, &yes, sizeof(yes));