Skip to content
Snippets Groups Projects
Select Git revision
2 results Searching

main.c

Forked from card10 / firmware
Source project has a limited visibility.
user avatar
Paul Sokolovsky authored
Peer-closed socket is both readable and writable: read will return EOF,
write - error. Without this poll will hang on such socket.

Note that we don't return POLLHUP, based on argumentation in
http://www.greenend.org.uk/rjk/tech/poll.html that it should apply to
deeper disconnects, for example for networking, that would be link layer
disconnect (e.g. WiFi went down).
5db55e63
History