summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikola Pajkovsky <npajkovs@redhat.com>2010-05-25 14:05:23 +0200
committerNikola Pajkovsky <npajkovs@redhat.com>2010-05-25 14:05:23 +0200
commitd33a83675a45dd76868450686346a5e92fcefd6f (patch)
tree004ffb7f58bb360d9f04ea4db6ba80ac97d09c94
parentfa8f2f161d37c293744ebe6fd7b55d63a2fe4bc3 (diff)
parent7d877a898aa89b31165208802663bf9899d819ea (diff)
downloadabrt-d33a83675a45dd76868450686346a5e92fcefd6f.tar.gz
abrt-d33a83675a45dd76868450686346a5e92fcefd6f.tar.xz
abrt-d33a83675a45dd76868450686346a5e92fcefd6f.zip
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
-rw-r--r--src/Daemon/Daemon.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp
index 70a6e980..68cc16fa 100644
--- a/src/Daemon/Daemon.cpp
+++ b/src/Daemon/Daemon.cpp
@@ -810,6 +810,7 @@ int main(int argc, char** argv)
int inotify_fd = inotify_init();
if (inotify_fd == -1)
perror_msg_and_die("inotify_init failed");
+ close_on_exec_on(inotify_fd);
if (inotify_add_watch(inotify_fd, DEBUG_DUMPS_DIR, IN_CREATE | IN_MOVED_TO) == -1)
perror_msg_and_die("inotify_add_watch failed on '%s'", DEBUG_DUMPS_DIR);