From b44e90f2139b97ac92bd69123679d04d16c9bd15 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Tue, 27 Dec 2022 13:01:09 +0100 Subject: debvm-run: reenable smp for real An empty MAX_SMP was supposed to mean "no limit", but it actually caused the -smp flag to be skipped entirely. Fixes: f3caaf885cf4 ("debvm-run: reenable smp for ppc64el") --- debvm-run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debvm-run b/debvm-run index edb01ad..972eac6 100755 --- a/debvm-run +++ b/debvm-run @@ -140,9 +140,9 @@ else ;; esac fi -if test "$MAX_SMP" -gt 1; then +if test -z "$MAX_SMP" || test "$MAX_SMP" -gt 1; then NPROC=$(nproc) - test "$NPROC" -gt "$MAX_SMP" && NPROC=$MAX_SMP + test -n "$MAX_SMP" && test "$NPROC" -gt "$MAX_SMP" && NPROC=$MAX_SMP set -- -smp "$NPROC" "$@" fi -- cgit v1.2.3