]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: don't pass uninitialzed PIDs to pid_is_unwaited()
authorLennart Poettering <lennart@poettering.net>
Tue, 27 Oct 2015 16:56:12 +0000 (17:56 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 27 Oct 2015 16:56:12 +0000 (17:56 +0100)
commit76583ef261c65feb6059680f95693ee582406c90
tree3a7fc7eefabf0eecd344510a4f4015cf60cd86b0
parent0d0696812980d8f41c54739ad73716a233a2fa7c
core: don't pass uninitialzed PIDs to pid_is_unwaited()

Since 5fd9b2c5467b0a42ccdabc7eb8e516d512609a8e passing a pid of 0 to
pid_is_unwaited() and pid_is_live() is considered as a request on the
current process, similar how the other calls in process-util.c handle a
PID of 0. This broke service.c, which passes a 0 PID and expects it to
be considered an unwaited process.

This fix make sure we can boot again.
src/core/service.c