From: Zac Medico Date: Tue, 1 Feb 2011 04:47:57 +0000 (-0800) Subject: _exec: use default SIGINT/TERM handlers X-Git-Tag: v2.2.0_alpha20~41 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=ed29c59f845cc1edbea630bb7e431bec8081e02d;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)