]> git.meshlink.io Git - meshlink/commit
Try to recover from select() returning an error.
authorGuus Sliepen <guus@meshlink.io>
Tue, 9 Feb 2021 20:00:35 +0000 (21:00 +0100)
committerGuus Sliepen <guus@meshlink.io>
Tue, 9 Feb 2021 20:21:45 +0000 (21:21 +0100)
commit56b4ea7e7a8fe29c1c1066def42c792cb51540d0
treef608a8cdd7557a923013ba6d2434e0e9d68ae389
parent9ced7621b5f25944dd756d45d5575fc87b27e507
Try to recover from select() returning an error.

If we get an error back from select(), it could be because one of the
filedescriptors is in a bad state. This shouldn't occur, but if it does,
just call all the registered I/O callbacks to have them check for errors.
Only quit the event loop if the error persists.

Also fix some I/O callbacks that didn't expect to be called when the
filedescriptor isn't signalled.
src/event.c
src/net_setup.c
src/net_socket.c