mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
Revert "Only track built-in watchdogd, not external ones"
This reverts commit 9eb8e8dd99.
This commit is contained in:
@@ -388,7 +388,8 @@ static void api_cb(uev_t *w, void *arg, int events)
|
||||
}
|
||||
|
||||
_e("Request to hand-over wdog ... to PID %d", rq.runlevel);
|
||||
if (!svc_find_by_pid(rq.runlevel)) {
|
||||
svc = svc_find_by_pid(rq.runlevel);
|
||||
if (!svc) {
|
||||
logit(LOG_ERR, "Cannot find PID %d, not registered.", rq.runlevel);
|
||||
break;
|
||||
}
|
||||
@@ -402,6 +403,7 @@ static void api_cb(uev_t *w, void *arg, int events)
|
||||
wdog->runlevels = 0;
|
||||
}
|
||||
}
|
||||
wdog = svc;
|
||||
break;
|
||||
|
||||
case INIT_CMD_SVC_ITER:
|
||||
|
||||
Reference in New Issue
Block a user