From 997a699b7e202c59ffb4291c0267643dc22d17c4 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 22 Jan 2020 15:48:56 +0100 Subject: [PATCH] Add more debug logs for /etc/finit.d*/ inotify and exec_runtask() Signed-off-by: Joachim Nilsson --- src/conf.c | 3 +++ src/exec.c | 1 + 2 files changed, 4 insertions(+) diff --git a/src/conf.c b/src/conf.c index c6315dae..8d027ff5 100644 --- a/src/conf.c +++ b/src/conf.c @@ -705,6 +705,8 @@ static int do_change(char *name, uint32_t mask) { struct conf_change *node; + _d("Change detected for %s, mask 0x%08x", name, mask); + node = conf_find(name); if (mask & (IN_DELETE | IN_MOVED_FROM)) { drop_change(node); @@ -837,6 +839,7 @@ static int add_watcher(uev_ctx_t *ctx, uev_t *w, char *path, uint32_t opt) close(fd); return 1; } + _d("Set up inotify watcher for %s ...", path); return 0; } diff --git a/src/exec.c b/src/exec.c index 39e985bc..52f32ecd 100644 --- a/src/exec.c +++ b/src/exec.c @@ -231,6 +231,7 @@ int exec_runtask(char *cmd, char *args[]) strlcat(buf, args[i], sizeof(buf)); } logit(LOG_DEBUG, "Calling %s %s", _PATH_BSHELL, buf); + _d("Calling %s %s", _PATH_BSHELL, buf); return execvp(_PATH_BSHELL, argv); }