From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1J9Li1-0007Pc-7D for garchives@archives.gentoo.org; Mon, 31 Dec 2007 14:33:41 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.2/8.14.0) with SMTP id lBVEVnDH015601; Mon, 31 Dec 2007 14:31:49 GMT Received: from smtp.ferdyx.org (170.Red-213-96-222.staticIP.rima-tde.net [213.96.222.170]) by robin.gentoo.org (8.14.2/8.14.0) with ESMTP id lBVESoNm011266 for ; Mon, 31 Dec 2007 14:28:50 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.ferdyx.org (Postfix) with ESMTP id 1314B8D306 for ; Mon, 31 Dec 2007 15:33:58 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at ferdyx.org Received: from smtp.ferdyx.org ([127.0.0.1]) by localhost (tungsteno.ferdyx.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t1nAl-k7wkox for ; Mon, 31 Dec 2007 15:33:56 +0100 (CET) Received: from snowcone (unknown [213.121.151.206]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.ferdyx.org (Postfix) with ESMTP id 330768D305 for ; Mon, 31 Dec 2007 15:33:56 +0100 (CET) Date: Mon, 31 Dec 2007 14:28:44 +0000 From: Ciaran McCreesh To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] has_version etc parallelisability Message-ID: <20071231142844.5e2a09aa@snowcone> In-Reply-To: References: <20071230223519.48adc9be@snowcone> X-Mailer: Claws Mail 3.2.0 (GTK+ 2.12.1; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/CyZb3Rv0H0zZ3SPNYw2rc6t"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Archives-Salt: f3db5216-0884-427d-aae9-a0a5ae9f76c4 X-Archives-Hash: c9448e2aa38ad81ee5bf2d77ea4ddc10 --Sig_/CyZb3Rv0H0zZ3SPNYw2rc6t Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 30 Dec 2007 20:11:16 -0800 "Alec Warner" wrote: > On 12/30/07, Ciaran McCreesh wrote: > > Is it legal for ebuilds to call has_version and friends in > > parallel? Is it legal for ebuilds to call has_version and friends > > after the ebuild process has terminated? Discuss. >=20 > If the pm implements read/write locking on the underlying datastore > (which it should probably have regardless of this request) then I > don't see a problem in parallel has_version calls. Actually, it's the communication channel that's the issue... If, for example, has_version is implemented in terms of a request on a pipe rather than execing a new package manager, we get into messy bash locking territory... > I don't get your second example..do you mean the ebuild is running > has_version in the background and then terminating? Yeah. Again, consider the pipe example. If the package manager closes off the pipe when it thinks the ebuild's done, calling has_version will get the backgrounded process SIGPIPEd. --=20 Ciaran McCreesh --Sig_/CyZb3Rv0H0zZ3SPNYw2rc6t Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQFHePye96zL6DUtXhERAlwGAJ98xyGhZwv7SugotymFbXP/HjmIygCfWQwy wRbpyeKolwxKQY8Q7H4u8LY= =jiBM -----END PGP SIGNATURE----- --Sig_/CyZb3Rv0H0zZ3SPNYw2rc6t-- -- gentoo-dev@gentoo.org mailing list