From 1d4658a51ea73742033ffdfa46a5af37fc0b1e48 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 4 Dec 2007 15:29:45 +0000 Subject: (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) --- mdkapplet | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mdkapplet') 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; } -- cgit v1.2.1