On Wed, Jan 04, 2006 at 09:32:47AM +0100, Johannes Fahrenkrug wrote:
> Ok, here's the patch for emerge-delta-webrync to use PORTAGE_NICENESS.
> Brian, I hope this is what you had in mind.
> I didn't alter the emerge-webrsync patch again, I think it's OK the way 
> I altered it in the last patch I posted,
> but I attached it again anyway.

Looks good; game to do the same for emerge-webrsync, and add in 
support for tarsync if it's available?

Users will feed you cookies for the faster emerge-webrsync ;)

Offhand... one option, minimal diff (although untested, so might have 
args wrong)-
if [[ -n $PORTAGE_NICENESS ]] && ! [[ -z $WE_ARE_NICED ]]; then
        export WE_ARE_NICED=1
        exec nice -n "$PORTAGE_NICENESS" "$0" "$@"
fi

Icky re-execing, but is the usual trick...
~harring

Attachment: pgpLVzU08dFt7.pgp
Description: PGP signature

Reply via email to