diff options
| author | Martin Willi <martin@revosec.ch> | 2014-11-28 12:36:10 +0100 |
|---|---|---|
| committer | Martin Willi <martin@revosec.ch> | 2014-11-28 12:50:34 +0100 |
| commit | 015fb3134db41ca9901ec5c895b15f5a37590ddc (patch) | |
| tree | d6567345e1796db903d3d3dcce2b2abc84a0b8d9 /src/libcharon/plugins/socket_default/socket_default_socket.c | |
| parent | 02fd29acc14630a553ec67f008865859e30859e9 (diff) | |
| download | strongswan-015fb3134db41ca9901ec5c895b15f5a37590ddc.tar.bz2 strongswan-015fb3134db41ca9901ec5c895b15f5a37590ddc.tar.xz | |
watcher: Proper handle poll() POLLHUP/NVAL signaling
poll() may return POLLHUP or POLLNVAL for given file descriptors. To handle
these properly, we signal them to the EXCEPT watcher state, if registered. If
not, we call the read/write callbacks, so they can properly fail when trying
to read from or write to the file descriptor.
Diffstat (limited to 'src/libcharon/plugins/socket_default/socket_default_socket.c')
0 files changed, 0 insertions, 0 deletions
