]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/service.c
service: handle forking services that move to a new PID
authorMichal Schmidt <mschmidt@redhat.com>
Tue, 20 Sep 2011 19:43:30 +0000 (21:43 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Tue, 20 Sep 2011 22:57:41 +0000 (00:57 +0200)
commitdb01f8b3f870611a013b913636bb7fefaab34018
tree9efc3b2a929ab66e84a0c1fa707334ae28fdab7a
parentb1db68fa60d4257d5cc84b512719dd99e856d82f
service: handle forking services that move to a new PID

When some forking daemons receive a SIGHUP, they re-execute themselves
and consequently change to a new main PID. As long as they update the
PID file in the right order (before exiting the old PID), we can detect
that and avoid killing them.
src/service.c