summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-12-04 15:29:45 +0000
committerThierry Vignaud <tv@mandriva.org>2007-12-04 15:29:45 +0000
commit1d4658a51ea73742033ffdfa46a5af37fc0b1e48 (patch)
treebbd5f7955cb92c623629b6adc3e73f5b938463b4
parent8d0b474207b617f643191bb1dafb05070dde4a44 (diff)
downloadmgaonline-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)
-rwxr-xr-xmdkapplet3
1 files changed, 1 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index 35373d66..1f15496c 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -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;
}