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:
parent
86ad8ff400
commit
5d54cdc0ec
3
rpmqv.c
3
rpmqv.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user