From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 37B42198005 for ; Sun, 24 Feb 2013 10:03:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6AA5E05AF; Sun, 24 Feb 2013 10:03:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C3FBAE05AF for ; Sun, 24 Feb 2013 10:03:50 +0000 (UTC) Received: from pomiocik.lan (unknown [213.195.173.220]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id BCB9933DD6F; Sun, 24 Feb 2013 10:03:48 +0000 (UTC) Date: Sun, 24 Feb 2013 11:03:57 +0100 From: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= To: Mike Gilbert Cc: gentoo-python@lists.gentoo.org, python@gentoo.org Subject: Re: [gentoo-python] Re: [PATCH 5/5] Re-enable split logs, now in python*_foreach_impl(). Message-ID: <20130224110357.517c71ed@pomiocik.lan> In-Reply-To: <51296FF2.3010603@gentoo.org> References: <20130221230724.15b66f86@pomiocik.lan> <1361484605-13363-5-git-send-email-mgorny@gentoo.org> <51296FF2.3010603@gentoo.org> Organization: Gentoo X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.16; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Discussions centering around the Python ecosystem in Gentoo Linux X-BeenThere: gentoo-python@gentoo.org X-BeenThere: gentoo-python@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA512; boundary="Sig_/CmxzOfV+pTVAvKgCyP.tM54"; protocol="application/pgp-signature" X-Archives-Salt: 541b7624-6359-412a-9629-c0b24006dfd7 X-Archives-Hash: ea5c2ac921a7d2395f7e2f0d518dd0d6 --Sig_/CmxzOfV+pTVAvKgCyP.tM54 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, 23 Feb 2013 20:42:10 -0500 Mike Gilbert wrote: > On 02/21/2013 05:10 PM, Micha=C5=82 G=C3=B3rny wrote: > > [[ ${ret} -eq 0 && ${lret} -ne 0 ]] && ret=3D${lret} > > @@ -655,7 +664,8 @@ python_parallel_foreach_impl() { > > _python_parallel() { > > ( > > multijob_child_init > > - "${@}" > > + "${@}" 2>&1 | tee -a "${T}/build-${EPYTHON}.log" > > + exit ${PIPESTATUS[0]} > > ) & > > multijob_post_fork > > } > >=20 >=20 > Why do we call "exit ${PIPESTATUS[0]}"? I have never seen that before. ${PIPESTATUS[n]} is exit status of n-th thing in the pipe. So: ${PIPESTATUS[0]} is the status of ${1} ${PIPESTATUS[1]} =3D=3D ${?} is the status of 'tee' --=20 Best regards, Micha=C5=82 G=C3=B3rny --Sig_/CmxzOfV+pTVAvKgCyP.tM54 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQJ8BAEBCgBmBQJRKeWUXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1RUJGMjBGOTk2RkIzQzIyQ0M2RkNBNDBC QUJGMUQ1RkY4QzgxMTBBAAoJELq/HV/4yBEKCGwP/j6JQYnsNPvzsNmcvQ7vssSl ycv3Se39GlK6MTK3G0txVtQhYa13jswqy7C8dStIiYVsL6WN6g7ciyB9x+pq0CWD 1PbQSCRWYcOkKUxSaQqyFVRdhP2mQGwGzUMaTBqbx1Pja51GlfDh1GFfZ+2LSqPa n5Cg9Ifz3rJgrEXW9j67+ijGi4VGvW4eW+XKTVZGLEvi3ItiZf9y2Spn1wZlmOwv ovBaQOmLFqreP16zdoXgli5c4T2zDsL56LL05Akq3jyHuS3Q+Qw1M6a9i8JC2fGQ T9sKxR6MVtBBN3NvbmE5XjVJAVoqCbYSECn/Sx/HFsPIX1SSNDCcaLq5zH4eLKPl FxbtMDuW+MW2uVMtNJdFEXIQYtvWVYfpGfSDpejJhoMqRXkoaszGfPC/+saEOhro lsYfc7BvJ3qXTqKz4yqzim4jApKHjgOjVsdpSf34Neu4OBoiDUOJ/OEgNZwyao5P XloUbAW7kpWKox8w/fWc0CwyduNm28Lvf5L9BRJgYgQTdbm3+9hypnM21c9433Db +GtIPjga0vWHQHkr6BPU+Ja4HspUHUsTOWm5JlZ62mXWwQuZ4GHgP054MZC/p5PN ScKH3VEOTbu4DeOZ3Bb0/rnPQunVqdy0jImQ1gS8YeQYUMHrG3DxCY7vzIhjfSU1 kbOIGWPEO8DhRRo5GA2v =dOGd -----END PGP SIGNATURE----- --Sig_/CmxzOfV+pTVAvKgCyP.tM54--