procd: stop service using SIGKILL if SIGTERM failed to do so
authorAlin Năstac <alin.nastac@gmail.com>
Thu, 9 Feb 2017 10:02:53 +0000 (11:02 +0100)
committerJohn Crispin <john@phrozen.org>
Wed, 15 Feb 2017 08:56:32 +0000 (09:56 +0100)
commit961dc692aff7457f874bce61f8e766514edcf794
treef67e40fee185a34e8d7584cdb4e696685f24c112
parentf13e12cc86163662c51a9109fdccd52812564c33
procd: stop service using SIGKILL if SIGTERM failed to do so

SIGKILL is sent if instance process is still running after
<term_timeout> seconds after SIGTERM has been sent. To prevent
another daemon process being launched before old process dies,
the instance is kept until SIGCHLD confirms that service has
been stopped.

Signed-off-by: Alin Nastac <alin.nastac@gmail.com>
service/instance.c
service/instance.h
service/service.c
service/service.h