diff options
Diffstat (limited to 'src/revdep-rebuild/revdep-rebuild')
-rwxr-xr-x | src/revdep-rebuild/revdep-rebuild | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/revdep-rebuild/revdep-rebuild b/src/revdep-rebuild/revdep-rebuild index b44dadc..1dd10a9 100755 --- a/src/revdep-rebuild/revdep-rebuild +++ b/src/revdep-rebuild/revdep-rebuild @@ -967,11 +967,13 @@ show_unowned_files() { ## # Setup portage and the search paths setup_portage() { - local PORTAGE_NICENESS=$(portageq envvar PORTAGE_NICENESS) + PORTAGE_NICENESS=$(portageq envvar PORTAGE_NICENESS) PORTAGE_ROOT=$(portageq envvar ROOT) - # Obey PORTAGE_NICENESS + # Obey PORTAGE_NICENESS (which is incremental to the current nice value) if [[ $PORTAGE_NICENESS ]]; then + current_niceness=$(nice) + let PORTAGE_NICENESS=${current_niceness}+${PORTAGE_NICENESS} 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. |