From d80db256ec34b8aac65eda89f2ff2baea5996d5f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 13 Mar 2010 06:47:36 +0000 Subject: [PATCH] Bug #309001 - Install a SIGPIPE handler inside _exec for all forked processes. svn path=/main/trunk/; revision=15825 --- pym/portage/process.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.26.2