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 ) id 1Ry96u-00011G-DE for garchives@archives.gentoo.org; Thu, 16 Feb 2012 21:43:28 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3CBDCE0F1A; Thu, 16 Feb 2012 21:43:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 07C03E0F1A for ; Thu, 16 Feb 2012 21:43:19 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3D63D1B4004 for ; Thu, 16 Feb 2012 21:43:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id A5002E5400 for ; Thu, 16 Feb 2012 21:43:17 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1329428579.f5e04fa4d74fc404cb067ecedf1adb7e5fc8846f.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/util/_eventloop/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/util/_eventloop/EventLoop.py X-VCS-Directories: pym/portage/util/_eventloop/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: f5e04fa4d74fc404cb067ecedf1adb7e5fc8846f X-VCS-Branch: master Date: Thu, 16 Feb 2012 21:43:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: ef188567-30e8-40b8-88a9-300ba7a8a3b7 X-Archives-Hash: 562f3bafb920a2ab9d49cb5b10554abe commit: f5e04fa4d74fc404cb067ecedf1adb7e5fc8846f Author: Zac Medico gentoo org> AuthorDate: Thu Feb 16 21:42:59 2012 +0000 Commit: Zac Medico gentoo org> CommitDate: Thu Feb 16 21:42:59 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Df5e04fa4 EventLoop: fix signal race in _sigchld_init --- pym/portage/util/_eventloop/EventLoop.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/pym/portage/util/_eventloop/EventLoop.py b/pym/portage/util/= _eventloop/EventLoop.py index 3123cab..9ca529f 100644 --- a/pym/portage/util/_eventloop/EventLoop.py +++ b/pym/portage/util/_eventloop/EventLoop.py @@ -242,11 +242,11 @@ class EventLoop(object): return source_id =20 def _sigchld_init(self): - signal.signal(signal.SIGCHLD, self._sigchld_sig_cb) self._sigchld_read, self._sigchld_write =3D os.pipe() fcntl.fcntl(self._sigchld_read, fcntl.F_SETFL, fcntl.fcntl(self._sigchld_read, fcntl.F_GETFL) | os.O_NONBLOCK) self.io_add_watch(self._sigchld_read, self.IO_IN, self._sigchld_io_cb) + signal.signal(signal.SIGCHLD, self._sigchld_sig_cb) =20 def _sigchld_sig_cb(self, signum, frame): # If this signal handler was not installed by the