From: Zac Medico Date: Tue, 1 Feb 2011 04:47:57 +0000 (-0800) Subject: _exec: use default SIGINT/TERM handlers X-Git-Tag: v2.1.9.36~37 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=74430dc75ff1bd2ef650619f9106983735bbc9fb;p=portage.git _exec: use default SIGINT/TERM handlers Avoid issues like bug #353239. --- diff --git a/pym/portage/process.py b/pym/portage/process.py index 00fe4a5eb..3c1537074 100644 --- a/pym/portage/process.py +++ b/pym/portage/process.py @@ -349,6 +349,11 @@ def _exec(binary, mycommand, opt_name, fd_pipes, env, gid, groups, uid, umask, myargs = [opt_name] myargs.extend(mycommand[1:]) + # Use default signal handlers in order to avoid problems + # killing subprocesses as reported in bug #353239. + signal.signal(signal.SIGINT, signal.SIG_DFL) + signal.signal(signal.SIGTERM, signal.SIG_DFL) + # Quiet killing of subprocesses by SIGPIPE (see bug #309001). signal.signal(signal.SIGPIPE, signal.SIG_DFL)