Add more debug logs for /etc/finit.d*/ inotify and exec_runtask()

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2020-01-22 15:48:56 +01:00
parent 21db27ee75
commit 997a699b7e
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -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;
}
+1
View File
@@ -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);
}