rpmqv.c (main): Make "nice change" value configurable via %nice_change macro; change default "nice change" value from 10 to 8

This commit is contained in:
Дмитрий Левин 2007-02-22 23:52:54 +00:00
parent 86ad8ff400
commit 5d54cdc0ec

View File

@ -610,7 +610,8 @@ int main(int argc, const char ** argv)
if ( !(geteuid() || rpmExpandNumeric( "%{?_allow_root_build}" )) )
argerror( _("current site policy disallows root to build packages") );
nice(10);
int nice_change = rpmExpandNumeric("%{?nice_change}%{?!nice_change:8}");
(void) nice(nice_change);
switch (ba->buildMode) {
case 'b': bigMode = MODE_BUILD; break;