From 2adc44295a5b5c77640c32cd24ebbd8d52e5237b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 14 May 2012 01:00:29 -0700 Subject: [PATCH] multijob_post_fork: return child status --- bin/helper-functions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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} } -- 2.26.2