diff options
author | Helmut Grohne <helmut@subdivi.de> | 2023-01-24 14:52:58 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2023-01-24 14:52:58 +0100 |
commit | 06b842b6184c62e706515601b974245498c09a66 (patch) | |
tree | 085511afbe08a4c2c4beaa20510f26c081ade27a /bin/debvm-run | |
parent | f695cb4c22b57b0fadf76b82abc2324d39763282 (diff) | |
download | debvm-06b842b6184c62e706515601b974245498c09a66.tar.gz |
debvm-run: do not pass -smp on unicore systems
Diffstat (limited to 'bin/debvm-run')
-rwxr-xr-x | bin/debvm-run | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/debvm-run b/bin/debvm-run index 70ee556..e07ce48 100755 --- a/bin/debvm-run +++ b/bin/debvm-run @@ -297,8 +297,10 @@ if test -n "$CPU"; then fi if test -z "$MAX_SMP" || test "$MAX_SMP" -gt 1; then NPROC=$(nproc) - test -n "$MAX_SMP" && test "$NPROC" -gt "$MAX_SMP" && NPROC=$MAX_SMP - set -- -smp "$NPROC" "$@" + if test "$NPROC" -gt 1; then + test -n "$MAX_SMP" && test "$NPROC" -gt "$MAX_SMP" && NPROC=$MAX_SMP + set -- -smp "$NPROC" "$@" + fi fi if test -n "$RNG_DEV"; then set -- -device "$RNG_DEV" "$@" |