multijob_post_fork: simpler handling of return value
authorMike Frysinger <vapier@gentoo.org>
Mon, 14 May 2012 17:35:29 +0000 (13:35 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 14 May 2012 18:51:05 +0000 (14:51 -0400)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
bin/helper-functions.sh

index 37f0b1337d8ddd9d542681c4f5d2fa07378d9a1f..afe14af91c9018c130504a43a8a2f7c3c21e0b3e 100644 (file)
@@ -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 $?
 }