[systemd-devel] sd_event_add_io with EPOLLPRI option
Lennart Poettering
lennart at poettering.net
Tue Aug 29 14:45:58 UTC 2017
On Do, 24.08.17 10:24, Yong Li (sdliyong at gmail.com) wrote:
> I found the root cause: I did not read the data in my callback function!
> Note that an event source set to SD_EVENT_ON will fire continuously
> unless data is read from or written to the file descriptor to reset
> the mask of events seen.
BTW, you can use SD_EVENT_ONESHOT for events that shall be fired only
once, and are disabled automatically for the next iteration when its
callback is invoked.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list