Open saghul opened 8 years ago
On Linux we can create a socket in non-blocking mode in a single syscall by OR-ing the socket type with SOCK_NONBLOCK. Same applies when using accept4. Use it.
SOCK_NONBLOCK
accept4
On Linux we can create a socket in non-blocking mode in a single syscall by OR-ing the socket type with
SOCK_NONBLOCK
. Same applies when usingaccept4
. Use it.