]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/service.c
service: watch main pid even in final states
authorLennart Poettering <lennart@poettering.net>
Wed, 18 Dec 2013 03:19:20 +0000 (04:19 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 18 Dec 2013 17:21:27 +0000 (18:21 +0100)
commitbf108e5541e2a3cbc6f0c59e93665eceb7a5ce05
tree9cf3647427c0b9fb99a05b0fc48eedd0c0256015
parentf6613dd959a1ab49bf061555ada77903397569ad
service: watch main pid even in final states

In some circumstances, for example when start-up times out we
immediately jump into the final state, at which point we still should
try to watch the main pid so that the SIGCHLD allows us to quickly
move into dead state.
src/core/service.c
src/shared/util.c
src/shared/util.h