commit:     c387db6118ecadd196aec77eb6edc326bd0f2535
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 15 12:30:07 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Apr 15 12:32:13 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c387db61

multibuild.eclass: Revert "Reap stray subjobs before exiting sub-phase"

The code wrongly relies on 'bash -n' which is not available in bash 4.2.

Bug: https://bugs.gentoo.org/615642
Reverts: e5e4a35151f64b423c4201a30270a236dab3bf58

 eclass/multibuild.eclass | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/eclass/multibuild.eclass b/eclass/multibuild.eclass
index a29218d8d84..0f89e4ec0b8 100644
--- a/eclass/multibuild.eclass
+++ b/eclass/multibuild.eclass
@@ -125,18 +125,6 @@ multibuild_foreach_variant() {
                _multibuild_run "${@}" \
                        > >(exec tee -a "${T}/build-${MULTIBUILD_ID}.log") 2>&1
                lret=${?}
-
-               # make sure no processes are left over
-               local leftovers=
-               while :; do
-                       wait -n
-                       [[ ${?} -eq 127 ]] && break || leftovers=1
-               done
-
-               if [[ ${leftovers} ]]; then
-                       ewarn "The multibuild function has left one or more 
processes running"
-                       ewarn "in the background. Please report a bug."
-               fi
        done
        [[ ${ret} -eq 0 && ${lret} -ne 0 ]] && ret=${lret}
 

Reply via email to