From f9f52a46a634da572e5ad77e107636f0c8fa9a97 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Tue, 5 Apr 2022 07:27:22 +0200 Subject: [PATCH] Debug sys plugin Signed-off-by: Joachim Wiberg --- plugins/sys.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/sys.c b/plugins/sys.c index 0d957457..7e52ca78 100644 --- a/plugins/sys.c +++ b/plugins/sys.c @@ -160,19 +160,23 @@ static void sys_init(void *arg) char sysdir[MAX_ARG_LEN]; char *path; + _d("Calling mkpath() on sys conds"); if (mkpath(pid_runpath(_PATH_CONDSYS, sysdir, sizeof(sysdir)), 0755) && errno != EEXIST) { _pe("Failed creating %s condition directory, %s", COND_SYS, _PATH_CONDSYS); return; } + _d("Calling realpth() on condsys"); path = realpath(_PATH_CONDSYS, NULL); if (!path) { _pe("Cannot figure out real path to %s, aborting", _PATH_CONDSYS); return; } + _d("Calling iwatch_add()"); if (iwatch_add(&iw_sys, path, IN_ONLYDIR)) iwatch_exit(&iw_sys); + _d("Done."); } static plugin_t plugin = {