From: Mike Frysinger Date: Mon, 14 May 2012 17:35:29 +0000 (-0400) Subject: multijob_post_fork: simpler handling of return value X-Git-Tag: v2.2.0_alpha105~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=22795b488b882aa423e6bc330a81820f41ec0eb9;p=portage.git multijob_post_fork: simpler handling of return value Signed-off-by: Mike Frysinger --- diff --git a/bin/helper-functions.sh b/bin/helper-functions.sh index 37f0b1337..afe14af91 100644 --- a/bin/helper-functions.sh +++ b/bin/helper-functions.sh @@ -54,11 +54,9 @@ 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 ${ret} + return $? }