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-462422-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1STqD9-0005SK-Qe
	for garchives@archives.gentoo.org; Mon, 14 May 2012 08:00:55 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B59CFE05F2;
	Mon, 14 May 2012 08:00:47 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 88737E05F2
	for <gentoo-commits@lists.gentoo.org>; Mon, 14 May 2012 08:00:47 +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 EBA251B410D
	for <gentoo-commits@lists.gentoo.org>; Mon, 14 May 2012 08:00:46 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by hornbill.gentoo.org (Postfix) with ESMTP id 86536E5429
	for <gentoo-commits@lists.gentoo.org>; Mon, 14 May 2012 08:00:45 +0000 (UTC)
From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" <zmedico@gentoo.org>
Message-ID: <1336982429.2adc44295a5b5c77640c32cd24ebbd8d52e5237b.zmedico@gentoo>
Subject: [gentoo-commits] proj/portage:master commit in: bin/
X-VCS-Repository: proj/portage
X-VCS-Files: bin/helper-functions.sh
X-VCS-Directories: bin/
X-VCS-Committer: zmedico
X-VCS-Committer-Name: Zac Medico
X-VCS-Revision: 2adc44295a5b5c77640c32cd24ebbd8d52e5237b
X-VCS-Branch: master
Date: Mon, 14 May 2012 08:00:45 +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: 3cd0522c-435c-475d-9c1a-13f24eedacd2
X-Archives-Hash: 720d216990dbeca0de41e99d34fd0aaf

commit:     2adc44295a5b5c77640c32cd24ebbd8d52e5237b
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon May 14 08:00:29 2012 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon May 14 08:00:29 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a=
=3Dcommit;h=3D2adc4429

multijob_post_fork: return child status

---
 bin/helper-functions.sh |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/bin/helper-functions.sh b/bin/helper-functions.sh
index 1c355e2..37f0b13 100644
--- a/bin/helper-functions.sh
+++ b/bin/helper-functions.sh
@@ -54,9 +54,11 @@ multijob_finish() {
 }
=20
 multijob_post_fork() {
+	local ret=3D0
 	: $(( ++mj_num_jobs ))
 	if [[ ${mj_num_jobs} -ge ${mj_max_jobs} ]] ; then
 		multijob_finish_one
+		: $(( ret |=3D $? ))
 	fi
-	return 0
+	return ${ret}
 }