Remove HOOK_SVC_LOST, recommend using accounting instead

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2018-09-30 11:28:27 +02:00
1 parent cd91e2c66c
commit 682e80fed5
8 files changed
+1 -87

No files matched your search

+1 -1
View File
@@ -189,7 +189,7 @@ int plugin_exists(hook_point_t no)
return 0;
}
/* Some hooks are called with a fixed argument, like HOOK_SVC_LOST */
/* Some hooks are called with a fixed argument */
void plugin_run_hook(hook_point_t no, void *arg)
{
plugin_t *p, *tmp;
-2
View File
@@ -56,7 +56,6 @@
* according to the following scheme:
*
* - HOOK_SVC_RECONF :: action/svc/reconf
* - HOOK_SVC_LOST :: action/svc/lost
* - HOOK_RUNLEVEL_CHANGE :: action/sys/runlevel
*
* However, the implementation did not turn out to be stable enough for
@@ -75,7 +74,6 @@
\
/* Runtime hooks, runlevel [S1-9] */ \
CHOOSE(HOOK_SVC_RECONF, "nop"), \
CHOOSE(HOOK_SVC_LOST, "nop"), \
CHOOSE(HOOK_RUNLEVEL_CHANGE, "nop"), \
\
/* Shutdown hooks, runlevel [06] */ \
-2
View File
@@ -922,8 +922,6 @@ void service_monitor(pid_t lost)
if (tty_respawn(lost))
return;
plugin_run_hook(HOOK_SVC_LOST, (void *)(uintptr_t)lost);
svc = svc_find_by_pid(lost);
if (!svc) {
_d("collected unknown PID %d", lost);