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 17:17:59 +0000 (19:17 +0200)
commitdfa0d7dd53ef91bc6f4ce799fbb3bb2eafc45ad1
treecda4d4cd887cceda471f1d6e89e573c100b2ed7a
parentc93c0fac58faa8c0aa3fba2ad98347b529671eb8
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)
(cherry picked from commit c36ab05b4f5b196091a2e1518f19e5800897e576)
src/libsystemd/sd-event/sd-event.c