diff options
-rwxr-xr-x | mdkapplet | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -331,6 +331,10 @@ sub silentCheck() { # immediate exit, else forked gtk+ object destructors will badly catch up parent applet my $_safe = before_leaving { POSIX::_exit(0) }; + + # be nice with other processes: + setpriority('PRIO_PROCESS', $$, 7); + my $exit = sub { my ($state) = @_; POSIX::_exit($comm_codes{$state}{code}); @@ -350,7 +354,7 @@ sub silentCheck() { } $exit->('locked') if $will_not_update_media; - if (my $res = !run_program::raw({ sensitive_arguments => 1 }, 'nice', '-n7', 'urpmi.update', '--update')) { + if (my $res = !run_program::raw({ sensitive_arguments => 1 }, 'urpmi.update', '--update')) { $exit->('error_updating') if $will_not_update_media; } |