On Do, 24.08.17 10:24, Yong Li ([email protected]) 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
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to