From 83dc1a3de6b8be51a572c25e24558d41ea7167ed Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Tue, 24 Sep 2019 10:10:38 +0200 Subject: [PATCH] libpbuild: limit parallel make jobs to 10, unless specified on cmd line --- Pmodules/libpbuild.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/Pmodules/libpbuild.bash b/Pmodules/libpbuild.bash index df9ad06..12230ff 100644 --- a/Pmodules/libpbuild.bash +++ b/Pmodules/libpbuild.bash @@ -102,6 +102,7 @@ declare -i JOBS=$(pbuild::get_num_cores) pbuild.jobs() { if (( $1 == 0 )); then JOBS=$(pbuild::get_num_cores) + (( JOBS > 10 )) && JOBS=10 || : else JOBS="$1" fi