summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-05-25 16:56:47 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-05-25 16:56:47 +0200
commit254e090d2154492695ff691dc2c1c010d7e47efd (patch)
tree054bf347de7f4020623f333033c935fbebb35502
parent18464fb0646bfbb1543875a26303ae6f3ba3ba4e (diff)
downloadabrt-254e090d2154492695ff691dc2c1c010d7e47efd.tar.gz
abrt-254e090d2154492695ff691dc2c1c010d7e47efd.tar.xz
abrt-254e090d2154492695ff691dc2c1c010d7e47efd.zip
trivial: stop leaking signal pipe to children
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--src/Daemon/Daemon.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp
index 73840973..3d8df570 100644
--- a/src/Daemon/Daemon.cpp
+++ b/src/Daemon/Daemon.cpp
@@ -743,6 +743,8 @@ int main(int argc, char** argv)
msg_prefix = "abrtd: "; /* for log(), error_msg() and such */
xpipe(s_signal_pipe);
+ close_on_exec_on(s_signal_pipe[0]);
+ close_on_exec_on(s_signal_pipe[1]);
signal(SIGTERM, handle_fatal_signal);
signal(SIGINT, handle_fatal_signal);
if (s_timeout)