summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-12-15 12:24:39 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-12-15 12:24:39 +0100
commitb4bd0face2bafdf314f9ba4a3537106c967b8022 (patch)
tree017681ed44a69da066311a91465f2660fded1edc
parent3126a489809bf36462095ece08593ec9a3358a19 (diff)
downloadabrt-b4bd0face2bafdf314f9ba4a3537106c967b8022.tar.gz
abrt-b4bd0face2bafdf314f9ba4a3537106c967b8022.tar.xz
abrt-b4bd0face2bafdf314f9ba4a3537106c967b8022.zip
abrt-debuginfo-install stderr is also redirected to parent
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--lib/Plugins/CCpp.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp
index ba4efa2e..0fe3d32a 100644
--- a/lib/Plugins/CCpp.cpp
+++ b/lib/Plugins/CCpp.cpp
@@ -385,11 +385,9 @@ static void InstallDebugInfos(const char *pDebugDumpDir,
{
close(pipeout[0]);
xmove_fd(pipeout[1], STDOUT_FILENO);
+ /* We want parent to see errors in the same stream */
+ xdup2(STDOUT_FILENO, STDERR_FILENO);
xmove_fd(xopen("/dev/null", O_RDONLY), STDIN_FILENO);
- /* Not a good idea, we won't see any error messages */
- /*close(STDERR_FILENO);*/
-
- setsid();
char *coredump = xasprintf("%s/"FILENAME_COREDUMP, pDebugDumpDir);
/* SELinux guys are not happy with /tmp, using /var/run/abrt */