From 7a3f7634cc10674b2b9610e19995c6bbab36611a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 1 Feb 2021 10:53:25 +0000 Subject: [PATCH] make.sh: Do not decrease nice level of build This was designed to keep a workstation that is compiling IPFire responsive during the build. However, the kernel's scheduler has been improved enough that this is no longer an issue. Instead of telling the kernel that the build job is something with a lower priority (which it isn't) we now simply run with the nicelevel of the parent process that has called make.sh. Signed-off-by: Michael Tremer --- make.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/make.sh b/make.sh index a9db53edf1..a2b4a7ce01 100755 --- a/make.sh +++ b/make.sh @@ -29,7 +29,6 @@ VERSION="2.25" # Version number CORE="154" # Core Level (Filename) SLOGAN="www.ipfire.org" # Software slogan CONFIG_ROOT=/var/ipfire # Configuration rootdir -NICE=10 # Nice level MAX_RETRIES=1 # prefetch/check loop BUILD_IMAGES=1 # Flash and Xen Downloader KVER=`grep --max-count=1 VER lfs/linux | awk '{ print $3 }'` @@ -435,11 +434,6 @@ prepareenv() { # Trap on emergency exit trap "exiterror 'Build process interrupted'" SIGINT SIGTERM SIGKILL SIGSTOP SIGQUIT - # Resetting our nice level - if ! renice ${NICE} $$ >/dev/null; then - exiterror "Failed to set nice level to ${NICE}" - fi - # Checking if running as root user if [ $(id -u) -ne 0 ]; then exiterror "root privileges required for building" -- 2.39.5