]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/service.c
service: kill processes with SIGKILL on watchdog failure
authorMichael Olbrich <m.olbrich@pengutronix.de>
Sun, 19 May 2013 10:10:55 +0000 (12:10 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 21 May 2013 13:23:51 +0000 (09:23 -0400)
commit9e9c3abcfa6b93500960531d0d7aa64b8b2b0349
tree7add36bbec109b5cc21e7f028596dda457410e59
parent571bfc6c56962dfc926e9bbc1600c511fc8565d1
service: kill processes with SIGKILL on watchdog failure

Just calling service_enter_dead() does not kill any processes.
As a result, the old process may still be running when the new one is
started.

After a watchdog failure the service is in an undefined state.
Using the normal shutdown mechanism makes no sense. Instead all processes
are just killed and the service can try to restart.
src/core/service.c