summaryrefslogtreecommitdiffstats
path: root/src/daemon/Daemon.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-09-07 13:32:39 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-09-07 13:32:39 +0200
commitcbd686eb63dd2f37f2d53641fcd565ff4ac6900e (patch)
tree33bef76758950f54515ffdfca16aaee035fd03be /src/daemon/Daemon.cpp
parentf85dfd89a51f665c8e54a928cbbf0668c7defdb4 (diff)
downloadabrt-cbd686eb63dd2f37f2d53641fcd565ff4ac6900e.tar.gz
abrt-cbd686eb63dd2f37f2d53641fcd565ff4ac6900e.tar.xz
abrt-cbd686eb63dd2f37f2d53641fcd565ff4ac6900e.zip
dumpsocket: removed unused sockaddr param in accept() call; s/perror/error/
Also removed unneeded casts and added and fixed comments Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
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())