mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user