diff options
author | Helmut Grohne <helmut@subdivi.de> | 2022-12-27 13:01:09 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2022-12-27 13:01:09 +0100 |
commit | b44e90f2139b97ac92bd69123679d04d16c9bd15 (patch) | |
tree | 516e4964704e435698f8ddfd0459f551fe560a57 /debvm-run | |
parent | 98fd7c69af3dd9b2dc56399197dc1e441939012e (diff) | |
download | debvm-b44e90f2139b97ac92bd69123679d04d16c9bd15.tar.gz |
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")
Diffstat (limited to 'debvm-run')
-rwxr-xr-x | debvm-run | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |