From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KkikQ-0008FA-OB for garchives@archives.gentoo.org; Tue, 30 Sep 2008 17:10:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4DC5CE0783; Tue, 30 Sep 2008 17:10:53 +0000 (UTC) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by pigeon.gentoo.org (Postfix) with ESMTP id 1E918E0783 for ; Tue, 30 Sep 2008 17:10:53 +0000 (UTC) Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 89F891C08F39; Tue, 30 Sep 2008 19:10:51 +0200 (CEST) Received: from localhost (unknown [192.168.1.157]) by mail.m-online.net (Postfix) with ESMTP id 792219038E; Tue, 30 Sep 2008 19:10:51 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.3.149]) by localhost (scanner1.m-online.net [192.168.1.157]) (amavisd-new, port 10024) with ESMTP id sAgR6L4R4ZTq; Tue, 30 Sep 2008 19:10:50 +0200 (CEST) Received: from gauss.x.fun (ppp-88-217-106-55.dynamic.mnet-online.de [88.217.106.55]) by mail.nefkom.net (Postfix) with ESMTP; Tue, 30 Sep 2008 19:10:50 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by gauss.x.fun (Postfix) with ESMTP id 0B00A23C9E2; Tue, 30 Sep 2008 19:10:50 +0200 (CEST) From: Matthias Schwarzott To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Usage of econf with an additional || die Date: Tue, 30 Sep 2008 19:10:48 +0200 User-Agent: KMail/1.9.10 Cc: Thomas Sachau References: <48E215AD.3070309@gentoo.org> <48E2583E.5060404@gentoo.org> In-Reply-To: <48E2583E.5060404@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809301910.49138.zzam@gentoo.org> X-Archives-Salt: 656e57e9-071a-4e0d-ab91-ff1a4990c6c9 X-Archives-Hash: fdcc50a0fa3acd6a4fa45b880ca9bea9 On Dienstag, 30. September 2008, Thomas Sachau wrote: > > From my knowledge and experience with sunrise: > > some functions that dont need "|| die": > epatch, econf, eqmake3, eqmake4 > > some functions that need "|| die": > emake, do* > > Afaik die wont work in a subshell independent of how it is called, so the > die from econf wont work, but also the "emake || die" one would also not > work. Well there might be some cases when die does not work fine, I am not sure. But it IS designed to work in subshells. Looking into /usr/lib/portage/bin/isolated-functions.sh: die basically calls kill -s SIGTERM ${EBUILD_MASTER_PID} and sigterm is catched in /usr/lib/portage/bin/ebuild.sh # subshell die support EBUILD_MASTER_PID=$$ trap 'exit 1' SIGTERM and btw. econf is also implemented as a function in ebuild.sh so it even is executed inside the "main" ebuild bash process - no subshell here. Regards Matthias