chiark / gitweb /
event: when handling SIGCHLD of a child process only reap after dispatching event...
authorLennart Poettering <lennart@poettering.net>
Wed, 11 Dec 2013 03:50:35 +0000 (03:50 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 11 Dec 2013 17:20:09 +0000 (18:20 +0100)
commit08cd15525450ff2c2ac814a58930f6d82284a1ba
tree888342a2d0e5bc2474d13d1dd08a9d0bb92cef4a
parente599ba01f564161966b3b8c93cc229daf847e807
event: when handling SIGCHLD of a child process only reap after dispatching event source

That way the even source callback is run with the zombie process still
around so that it can access /proc/$PID/ and similar, and so that it can
be sure that the PID has not been reused yet.
TODO
src/libsystemd-bus/sd-event.c