From: Zac Medico Date: Mon, 14 May 2012 08:00:29 +0000 (-0700) Subject: multijob_post_fork: return child status X-Git-Tag: v2.2.0_alpha105~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2adc44295a5b5c77640c32cd24ebbd8d52e5237b;p=portage.git multijob_post_fork: return child status --- diff --git a/bin/helper-functions.sh b/bin/helper-functions.sh index 1c355e247..37f0b1337 100644 --- a/bin/helper-functions.sh +++ b/bin/helper-functions.sh @@ -54,9 +54,11 @@ multijob_finish() { } multijob_post_fork() { + local ret=0 : $(( ++mj_num_jobs )) if [[ ${mj_num_jobs} -ge ${mj_max_jobs} ]] ; then multijob_finish_one + : $(( ret |= $? )) fi - return 0 + return ${ret} }