mirror of
https://github.com/omar-polo/gmid.git
synced 2024-09-27 21:11:51 +02:00
handle also EAGAIN together with EWOULDBLOCK
This commit is contained in:
parent
2564eddee4
commit
cfb8a77fd4
2
server.c
2
server.c
@ -984,7 +984,7 @@ do_accept(int sock, struct tls *ctx, struct pollfd *fds, struct client *clients)
|
||||
|
||||
len = sizeof(addr);
|
||||
if ((fd = accept(sock, (struct sockaddr*)&addr, &len)) == -1) {
|
||||
if (errno == EWOULDBLOCK)
|
||||
if (errno == EWOULDBLOCK || errno == EAGAIN)
|
||||
return;
|
||||
fatal("accept: %s", strerror(errno));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user