Systemd/src/libsystemd/sd-event
Lennart Poettering b9350e70aa sd-event: support callback=NULL in IO/child/inotify/defer event sources, too
Also, document this functionality more prominently, including with a
reference from sd_event_exit().

This is mostly to make things complete, as previously we supported NULL
callbacks only in _add_time() and _add_signal(). However, I think this
makes snese for IO event sources too (think: when some fd such as a pipe
end sees SIGHUP or so, exit), as well as defer or post event sources (i.e. exit
once we got nothing else to do). This also adds support for inotify
event sources, simply to complete things (I can't see the immediate use,
but maybe someone else comes up with it).

The only event source type that doesn't allow callback=NULL now are exit
callbacks, but for them they make little sense, as the event loop is
exiting then anyway.
2020-10-07 09:40:16 +02:00
..
event-source.h sd-event: optionally, if an event source fails, exit the event loop 2020-10-07 09:38:41 +02:00
event-util.c coccinelle: also mark previous synthetic errnos as such 2018-11-22 10:54:38 +01:00
event-util.h sd-event: also introduce event_source_is_enabled() 2018-11-16 22:57:42 +09:00
sd-event.c sd-event: support callback=NULL in IO/child/inotify/defer event sources, too 2020-10-07 09:40:16 +02:00
test-event.c test: add test for pidfd support in sd-event 2019-12-04 10:35:39 +01:00