summaryrefslogtreecommitdiffstats
path: root/src/daemon/Daemon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/Daemon.cpp')
-rw-r--r--src/daemon/Daemon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/Daemon.cpp b/src/daemon/Daemon.cpp
index ac845b1f..7c7fed2b 100644
--- a/src/daemon/Daemon.cpp
+++ b/src/daemon/Daemon.cpp
@@ -856,7 +856,6 @@ int main(int argc, char** argv)
VERB1 log("Creating glib main loop");
pMainloop = g_main_loop_new(NULL, FALSE);
- /* Watching DEBUG_DUMPS_DIR for new files... */
VERB1 log("Initializing inotify");
sanitize_dump_dir_rights();
@@ -865,6 +864,7 @@ int main(int argc, char** argv)
if (inotify_fd == -1)
perror_msg_and_die("inotify_init failed");
close_on_exec_on(inotify_fd);
+ /* Watching DEBUG_DUMPS_DIR for new files... */
if (inotify_add_watch(inotify_fd, DEBUG_DUMPS_DIR, IN_CREATE | IN_MOVED_TO) < 0)
perror_msg_and_die("inotify_add_watch failed on '%s'", DEBUG_DUMPS_DIR);
if (!g_settings_sWatchCrashdumpArchiveDir.empty())