config/multithread: allow THREADCOUNT=0 (one thread per package)

This commit is contained in:
MilhouseVH 2019-08-08 21:53:27 +01:00
parent 066d1f4915
commit bcb6fbb2dd

View File

@ -147,7 +147,8 @@ start_multithread_build() {
echo 0 >"${THREAD_CONTROL}/status.max"
touch "${THREAD_CONTROL}/status"
[ "${THREADCOUNT}" = "0" ] && THREADCOUNT=1
# Increase file descriptors if building one thread/package
[ "${THREADCOUNT}" = "0" ] && ulimit -n ${ULIMITN:-10240}
# Bootstrap GNU parallel
MTWITHLOCKS=no $SCRIPTS/build parallel:host 2>&1 || die "Unable to bootstrap parallel package"