mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
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 <michael.tremer@ipfire.org>
This commit is contained in:
6
make.sh
6
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"
|
||||
|
||||
Reference in New Issue
Block a user