aboutsummaryrefslogtreecommitdiff
path: root/seatd/poller.c
AgeCommit message (Collapse)Author
2020-11-23poller: Retry poll immediately on EINTRKenny Levinsen
There is nothing for us to dispatch unless we wake on an fd, so just retry poll if it fails with EINTR instead of doing a full dispatch loop.
2020-09-22poller: Add unittestKenny Levinsen
2020-09-22poller: Raise signals through self-pipeKenny Levinsen
Signal handling relied on poll(2) being interrupted by signals, followed by a check for signal handlers flagging a signal as received. This only allowed signals that were received during poll(2) to be handled correctly. Implement the usual self-pipe implementation, where signal handlers write an arbitrary byte to a polled file descriptor to ensure proper level-triggered signal handling.
2020-08-31poller: Remember to remove sources from listKenny Levinsen
2020-08-31poller: Convert to linked_listKenny Levinsen
2020-08-31poller: Make event sources opaqueKenny Levinsen
2020-08-03poller: Inline the poller into the server structKenny Levinsen
2020-08-03poller: Remove unnecessary poll_impl abstractionKenny Levinsen