sd-event: do not assert on invalid signal
authorDavid Tardon <dtardon@redhat.com>
Thu, 25 Jul 2024 08:06:34 +0000 (10:06 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 25 Jul 2024 10:57:05 +0000 (11:57 +0100)
commit7a64c5f23efbb51fe4f1229c1a8aed6dd858a0a9
tree4a09de69884c2ef1e4326bcd9a617293fdf9aba5
parent639719e01065c3a2f557d70e4d8088c2ec71c7c6
sd-event: do not assert on invalid signal

The signalfd_siginfo struct is received from outside via a FD, hence
assert() is not appropriate way to check it. Just do a normal runtime
check.
src/libsystemd/sd-event/sd-event.c