Add HOOK_SVC_LOST to detect lost processes

This patch adds support for the runtime `HOOK_SVC_LOST` and the (very
noisy) *example* plugin `lost.so`.

Customer request.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2016-04-05 03:33:58 +02:00
1 parent e54c7eef65
commit 3f3220e806
7 files changed
+90 -7

No files matched your search

+2
View File
@@ -740,6 +740,8 @@ 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);