summaryrefslogtreecommitdiffstats
path: root/lib/Utils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-05-19 14:12:30 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-05-19 14:12:30 +0200
commit5368b089d519764f076164d190e9c0f716e3b27b (patch)
treeba182ff5d5ed1df2f05a00c8e6396366d29ea3aa /lib/Utils
parentaff685127d45fd048826c2fec30eaa8a98c21ff2 (diff)
downloadabrt-5368b089d519764f076164d190e9c0f716e3b27b.tar.gz
abrt-5368b089d519764f076164d190e9c0f716e3b27b.tar.xz
abrt-5368b089d519764f076164d190e9c0f716e3b27b.zip
trivial fix: fork_execv_on_steroids was closing wrong descriptor
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Utils')
-rw-r--r--lib/Utils/spawn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Utils/spawn.cpp b/lib/Utils/spawn.cpp
index 43bc9540..dace7d4b 100644
--- a/lib/Utils/spawn.cpp
+++ b/lib/Utils/spawn.cpp
@@ -73,7 +73,7 @@ pid_t fork_execv_on_steroids(int flags,
}
if (flags & EXECFLG_OUTPUT) {
xmove_fd(pipe_fm_child[1], STDOUT_FILENO);
- close(pipe_to_child[0]);
+ close(pipe_fm_child[0]);
} else if (flags & EXECFLG_OUTPUT_NUL) {
xmove_fd(xopen("/dev/null", O_RDWR), STDOUT_FILENO);
}