summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/process.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/process.py b/pym/portage/process.py
index e7f09cd2d..703e7cc9f 100644
--- a/pym/portage/process.py
+++ b/pym/portage/process.py
@@ -343,6 +343,9 @@ def _exec(binary, mycommand, opt_name, fd_pipes, env, gid, groups, uid, umask,
myargs = [opt_name]
myargs.extend(mycommand[1:])
+ # Quiet killing of subprocesses by SIGPIPE (see bug #309001).
+ signal.signal(signal.SIGPIPE, signal.SIG_DFL)
+
# Set up the command's pipes.
my_fds = {}
# To protect from cases where direct assignment could