mirror of
https://github.com/troglobit/finit.git
synced 2026-10-15 10:29:35 +00:00
Use pid_runpath() in svc_find_by_pidfile(), used by pidfile plugin
The pidfile plugin just listens to changes in files in /run or /var/run, so when trying to locate an svc_t from a file change we need to compare using the proper prefix path. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
91b550662e
commit
32d9afc7bb
3 files changed
+7
-6
No files matched your search
@@ -69,9 +69,6 @@ static void pidfile_callback(void *arg, int fd, int events)
|
||||
if (!svc)
|
||||
continue;
|
||||
|
||||
/* TODO FIXME XXX WKZ check that pid is controlled by finit */
|
||||
|
||||
_d("%s: match %s", ev->name, svc->cmd);
|
||||
mkcond(cond, sizeof(cond), svc->cmd);
|
||||
if (ev->mask & (IN_CREATE | IN_ATTRIB | IN_MODIFY)) {
|
||||
svc_started(svc);
|
||||
|
||||
Reference in new issue
Block a user