Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Create a non-blocking socket in a single syscall #39

Open
saghul opened this issue Jun 4, 2016 · 0 comments
Open

Create a non-blocking socket in a single syscall #39

saghul opened this issue Jun 4, 2016 · 0 comments

Comments

@saghul
Copy link
Owner

saghul commented Jun 4, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant