From ed29c59f845cc1edbea630bb7e431bec8081e02d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 31 Jan 2011 20:47:57 -0800 Subject: [PATCH] _exec: use default SIGINT/TERM handlers Avoid issues like bug #353239. --- pym/portage/process.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.26.2