From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-commits+bounces-313672-garchives=archives.gentoo.org@lists.gentoo.org>) id 1Pm4Ue-0007wy-Al for garchives@archives.gentoo.org; Sun, 06 Feb 2011 13:17:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AE213E0BC4; Sun, 6 Feb 2011 13:10:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 7C84BE0BAA for <gentoo-commits@lists.gentoo.org>; Sun, 6 Feb 2011 13:10:00 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3DB0B1B41E2 for <gentoo-commits@lists.gentoo.org>; Sun, 6 Feb 2011 13:10:00 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id AB95E80074 for <gentoo-commits@lists.gentoo.org>; Sun, 6 Feb 2011 13:09:59 +0000 (UTC) From: "Thomas Sachau" <tommy@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Sachau" <tommy@gentoo.org> Message-ID: <ed29c59f845cc1edbea630bb7e431bec8081e02d.tommy@gentoo> Subject: [gentoo-commits] proj/portage:multilib commit in: pym/portage/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/process.py X-VCS-Directories: pym/portage/ X-VCS-Committer: tommy X-VCS-Committer-Name: Thomas Sachau X-VCS-Revision: ed29c59f845cc1edbea630bb7e431bec8081e02d Date: Sun, 6 Feb 2011 13:09:59 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: bd5d59726e7d427f194714f4aa4ae1ca commit: ed29c59f845cc1edbea630bb7e431bec8081e02d Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Tue Feb 1 04:47:57 2011 +0000 Commit: Thomas Sachau <tommy <AT> gentoo <DOT> org> CommitDate: Tue Feb 1 04:47:57 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Ded29c59f _exec: use default SIGINT/TERM handlers Avoid issues like bug #353239. --- pym/portage/process.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/pym/portage/process.py b/pym/portage/process.py index 00fe4a5..3c15370 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 =3D [opt_name] myargs.extend(mycommand[1:]) =20 + # 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) =20