sd-event: do not update signal fd after PID is changed
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 8 Apr 2022 23:28:33 +0000 (08:28 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 28 Apr 2022 16:59:12 +0000 (18:59 +0200)
commitc36ab05b4f5b196091a2e1518f19e5800897e576
treeaf3b1a6326b848cb3e6d36e78bd47a0491cb7819
parente006b56c187facfd6cd5ca3979c4088159d551f1
sd-event: do not update signal fd after PID is changed

Otherwise, child event source will not work after the process is forked
and the event source is unref()ed on the child process.

(cherry picked from commit 01e6af737494c9790edcc5521ea8c668565b797f)
src/libsystemd/sd-event/sd-event.c