-
Radostin Stoyanov authored
The server socket is marked as nonblocking, and if the client doesn't connect, accept() will fail and set errno to EAGAIN (or EWOULDBLOCK). Instead, use poll to wait for POLLIN event on the file descriptor. Suggested-by:
Andrei Vagin <avagin@gmail.com> Signed-off-by:
Radostin Stoyanov <rstoyanov1@gmail.com>
635db489