Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | watcher: Don't complain if select() syscall got interrupted | Martin Willi | 2014-01-22 | 1 | -1/+1 |
| | |||||
* | watcher: Rebuild fdset when select() fails | Martin Willi | 2013-10-24 | 1 | -1/+12 |
| | | | | | | This should make sure we refresh the fdset if a user closes an FD it just removed. Some selects() seem to complain about the bad FD before signaling the notification pipe. | ||||
* | watcher: Made notify array initialization compatible with older GCC versions | Tobias Brunner | 2013-07-25 | 1 | -2/+1 |
| | |||||
* | watcher: use processors new execute_job() to notify FDs | Martin Willi | 2013-07-18 | 1 | -9/+1 |
| | | | | | Just queueing is problematic, as all threads might be busy waiting for events that the queued (but never executed) job delivers. | ||||
* | watcher: properly support multiple watch callback types for the same FD | Martin Willi | 2013-07-18 | 1 | -35/+40 |
| | |||||
* | watcher: read multiple notifications if available | Martin Willi | 2013-07-18 | 1 | -2/+15 |
| | | | | | Use non-blocking I/O on the read end of the notify pipe. This also makes sure the read does not block should select() signal data while there is none. | ||||
* | watcher: add some debugging statements | Martin Willi | 2013-07-18 | 1 | -0/+12 |
| | |||||
* | watcher: if the processor has no threads, execute the job with watcher thread | Martin Willi | 2013-07-18 | 1 | -11/+19 |
| | | | | | This is important during shutdown, where we might need to signal some FDs while all idle threads are gone already. | ||||
* | watcher: unregister a watcher FD if its thread gets cancelled | Martin Willi | 2013-07-18 | 1 | -0/+13 |
| | |||||
* | watcher: release threads waiting in remove() when watcher thread gets cancelled | Martin Willi | 2013-07-18 | 1 | -0/+24 |
| | | | | | | | During daemon shutdown, users might call remove() after processor.set_threads(0) has been called. This gets problematic, as a watch event might be unable to signal completion when no threads are available anymore. Work around this issue by cancelling waiters once processor.cancel() has been called. | ||||
* | watcher: add a centralized an generic facility to monitor file descriptors | Martin Willi | 2013-07-18 | 1 | -0/+396 |