summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2023-01-24 14:52:58 +0100
committerHelmut Grohne <helmut@subdivi.de>2023-01-24 14:52:58 +0100
commit06b842b6184c62e706515601b974245498c09a66 (patch)
tree085511afbe08a4c2c4beaa20510f26c081ade27a /bin
parentf695cb4c22b57b0fadf76b82abc2324d39763282 (diff)
downloaddebvm-06b842b6184c62e706515601b974245498c09a66.tar.gz
debvm-run: do not pass -smp on unicore systems
Diffstat (limited to 'bin')
-rwxr-xr-xbin/debvm-run6
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" "$@"