diff options
| author | fuzzyray <fuzzyray@gentoo.org> | 2006-02-07 04:36:33 +0000 |
|---|---|---|
| committer | fuzzyray <fuzzyray@gentoo.org> | 2006-02-07 04:36:33 +0000 |
| commit | 4588220e92b26cebd3f316e1364abcb8b3364698 (patch) | |
| tree | e0c5009bd3aeab69f1d9b53f32c135847259b107 /trunk/src | |
| parent | cf6b447f3b75a89892f457390adb70c5d14e5e75 (diff) | |
| download | gentoolkit-4588220e92b26cebd3f316e1364abcb8b3364698.tar.gz | |
Fix for PORTAGE_NICENESS
svn path=/; revision=276
Diffstat (limited to 'trunk/src')
| -rwxr-xr-x | trunk/src/revdep-rebuild/revdep-rebuild | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/trunk/src/revdep-rebuild/revdep-rebuild b/trunk/src/revdep-rebuild/revdep-rebuild index d6bd69a..2f35e3d 100755 --- a/trunk/src/revdep-rebuild/revdep-rebuild +++ b/trunk/src/revdep-rebuild/revdep-rebuild @@ -56,7 +56,13 @@ echo "Configuring search environment for revdep-rebuild" # Obey PORTAGE_NICENESS PORTAGE_NICENESS=$(portageq envvar PORTAGE_NICENESS) -[ ! -z "$PORTAGE_NICENESS" ] && renice $PORTAGE_NICENESS $$ > /dev/null +if [ ! -z "$PORTAGE_NICENESS" ] +then + renice $PORTAGE_NICENESS $$ > /dev/null + # Since we have already set our nice value for our processes, + # reset PORTAGE_NICENESS to zero to avoid having emerge renice again. + export PORTAGE_NICENESS="0" +fi PORTAGE_ROOT=$(portageq envvar ROOT) [ -z "$PORTAGE_ROOT" ] && PORTAGE_ROOT="/" |
