diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-12-04 15:29:45 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-12-04 15:29:45 +0000 |
commit | 1d4658a51ea73742033ffdfa46a5af37fc0b1e48 (patch) | |
tree | bbd5f7955cb92c623629b6adc3e73f5b938463b4 /mdkapplet | |
parent | 8d0b474207b617f643191bb1dafb05070dde4a44 (diff) | |
download | mgaonline-1d4658a51ea73742033ffdfa46a5af37fc0b1e48.tar mgaonline-1d4658a51ea73742033ffdfa46a5af37fc0b1e48.tar.gz mgaonline-1d4658a51ea73742033ffdfa46a5af37fc0b1e48.tar.bz2 mgaonline-1d4658a51ea73742033ffdfa46a5af37fc0b1e48.tar.xz mgaonline-1d4658a51ea73742033ffdfa46a5af37fc0b1e48.zip |
(silentCheck) run renice on urpmi.update (detaching "renice" lead to
closed X connection and thus async error) (bug introduced in r231300
on 2007-11-02)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -329,7 +329,6 @@ sub silentCheck() { if (defined $checker_pid) { return if $checker_pid; # parent - run_program::raw({ detach => 1 }, 'renice', '7', $$); # immediate exit, else forked gtk+ object destructors will badly catch up parent applet my $_safe = before_leaving { POSIX::_exit(0) }; my $exit = sub { @@ -351,7 +350,7 @@ sub silentCheck() { } $exit->('locked') if $will_not_update_media; - if (my $res = !run_program::raw({ sensitive_arguments => 1 }, 'urpmi.update', '--update')) { + if (my $res = !run_program::raw({ sensitive_arguments => 1 }, 'renice', '7', 'urpmi.update', '--update')) { $exit->('error_updating') if $will_not_update_media; } |