mirror of
https://github.com/troglobit/finit.git
synced 2026-10-17 10:49:34 +00:00
Revert "Only track built-in watchdogd, not external ones"
This reverts commit 9eb8e8dd99.
This commit is contained in:
1 parent
36f1a39b31
commit
7b74c9900f
1 file changed
+3
-1
@@ -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);
|
_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);
|
logit(LOG_ERR, "Cannot find PID %d, not registered.", rq.runlevel);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -402,6 +403,7 @@ static void api_cb(uev_t *w, void *arg, int events)
|
|||||||
wdog->runlevels = 0;
|
wdog->runlevels = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
wdog = svc;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case INIT_CMD_SVC_ITER:
|
case INIT_CMD_SVC_ITER:
|
||||||
|
|||||||
Reference in new issue
Block a user