Is this needed? If I understand the documentation [1] correctly, this is
the default behaviour.
"With the default settings of None, no redirection will occur; the
child’s file handles will be inherited from the parent."
[1]
http://docs.python.org/2/library/subprocess.html#subprocess.Popen
On Tue, Nov 06, 2012 at 13:57:02 +0100, Jakub Filak wrote:
- closes rhbz#873488
Signed-off-by: Jakub Filak <jfilak(a)redhat.com>
---
src/plugins/abrt-action-perform-ccpp-analysis.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/abrt-action-perform-ccpp-analysis.in
b/src/plugins/abrt-action-perform-ccpp-analysis.in
index 878cf95..5266995 100644
--- a/src/plugins/abrt-action-perform-ccpp-analysis.in
+++ b/src/plugins/abrt-action-perform-ccpp-analysis.in
@@ -46,7 +46,7 @@ def handle_event(event_name, problem_dir):
executable = "@libexecdir@/abrt-handle-event"
try:
- proc = Popen([executable, "-e", event_name, "--",
problem_dir])
+ proc = Popen([executable, "-e", event_name, "--",
problem_dir], stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr)
return proc.wait() == 0
except OSError as e:
sys.stderr.write("Can't run '{0}':
{1}\n".format(executable, e))
--
1.7.11.7