mirror of
https://github.com/troglobit/finit.git
synced 2026-10-31 13:00:32 +00:00
service_stop(): improve debug, show rc of kill(), and it's args.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
16710e7ab5
commit
12c3cb3dc0
1 file changed
+1
-1
+1
-1
@@ -702,7 +702,7 @@ static int service_stop(svc_t *svc)
|
|||||||
if (svc->pid > 1) {
|
if (svc->pid > 1) {
|
||||||
/* Kill all children in the same proess group, e.g. logit */
|
/* Kill all children in the same proess group, e.g. logit */
|
||||||
rc = kill(-svc->pid, svc->sighalt);
|
rc = kill(-svc->pid, svc->sighalt);
|
||||||
|
_d("kill(-%d, %d) => rc %d", svc->pid, svc->sighalt, rc);
|
||||||
/* PID lost or forking process never really started */
|
/* PID lost or forking process never really started */
|
||||||
if (rc == -1 && ESRCH == errno)
|
if (rc == -1 && ESRCH == errno)
|
||||||
service_cleanup(svc);
|
service_cleanup(svc);
|
||||||
|
|||||||
Reference in new issue
Block a user