mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-13 22:12:56 +00:00
set O_NONBLOCK default in accept()
This commit is contained in:
parent
303579cb42
commit
1458dc8347
@ -656,7 +656,7 @@ int accept(ACCEPT_SIG)
|
||||
}
|
||||
|
||||
//if(opt & O_NONBLOCK)
|
||||
//fcntl(sockfd, F_SETFL, O_NONBLOCK);
|
||||
fcntl(sockfd, F_SETFL, O_NONBLOCK);
|
||||
|
||||
char rbuf[16], c[1];
|
||||
int new_conn_socket;
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user