]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-event/sd-event.c
sd-event: make sure RT signals are not dropped
authorLennart Poettering <lennart@poettering.net>
Thu, 3 Sep 2015 18:13:09 +0000 (20:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 4 Sep 2015 07:07:31 +0000 (09:07 +0200)
commit9da4cb2be260ed123f2676cb85cb350c527b1492
treeb4960f8ca733ce579f965f1e4dbbc65c2330669d
parent348637b28a6253591a5899665d3cde6d8d71d118
sd-event: make sure RT signals are not dropped

RT signals operate in a queue, and we should be careful to never merge
two queued signals into one. Hence, makes sure we only ever dequeue a
single signal at a time and leave the remaining ones queued in the
signalfd. In order to implement correct priorities for the signals
introduce one signalfd per priority, so that we only process the highest
priority signal at a time.
src/libsystemd/sd-event/sd-event.c
src/libsystemd/sd-event/test-event.c