diff options
Diffstat (limited to 'lib/net/server.c')
-rw-r--r-- | lib/net/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/server.c b/lib/net/server.c index 48213fb..3668462 100644 --- a/lib/net/server.c +++ b/lib/net/server.c @@ -49,8 +49,8 @@ void server_shutdown(server_t* srv) { } } -conn_t* conn_try_accept(server_t* srv) { - int client_socket_fd = accept4(srv->listen_socket_fd, NULL, NULL, SOCK_NONBLOCK); +conn_t* server_try_accept(server_t* srv) { + int client_socket_fd = accept(srv->listen_socket_fd, NULL, NULL); if (client_socket_fd == -1) { if (errno == EAGAIN || errno == EWOULDBLOCK) { return NULL; |