]> Creatis software - clitk.git/blobdiff - fast_make.sh
cleanup / better handling of errors
[clitk.git] / fast_make.sh
index 471562c515aa0da35d00b7f21ff2298046409d57..9309c87faaa5dfe660dd17662685d4be2b24860e 100755 (executable)
@@ -29,8 +29,9 @@ else #use all the available computing power by default
     cpus=$(( $(cat /proc/cpuinfo | grep -c ^processor) + 0 ))
 fi
 
-make -j ${cpus} $@ &
-make_pid=$(jobs -p %make)
+nice -n12 ionice -c3 make -j ${cpus} $@ &
+make_pid=$(jobs -p %nice)
+
 #watch memory use to avoid crashes
 while ps $make_pid >>/dev/null 
 do