Add HOOK_SVC_START to detect started processes

This patch adds support for the runtime `HOOK_SVC_START`.

Customer request.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2016-04-05 03:45:23 +02:00
1 parent 3f3220e806
commit 8f415aeaf6
3 files changed
+8

No files matched your search

+2
View File
@@ -248,6 +248,8 @@ static int service_start(svc_t *svc)
close(svc->stdin);
#endif
plugin_run_hook(HOOK_SVC_START, (void *)(uintptr_t)pid);
if (SVC_TYPE_RUN == svc->type) {
result = WEXITSTATUS(complete(svc->cmd, pid));
svc->pid = 0;