summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-16 19:25:04 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-16 19:25:04 +0000
commit933c47d5a2f6acd18081d4aeb58f49ab6ec3b56b (patch)
tree0fca8dc114caacb6e71060fc6c907cbfbc045b11
parent7b1c7028c55720ad5352bf7cb0995a0c3c5d4152 (diff)
downloadmgaonline-933c47d5a2f6acd18081d4aeb58f49ab6ec3b56b.tar
mgaonline-933c47d5a2f6acd18081d4aeb58f49ab6ec3b56b.tar.gz
mgaonline-933c47d5a2f6acd18081d4aeb58f49ab6ec3b56b.tar.bz2
mgaonline-933c47d5a2f6acd18081d4aeb58f49ab6ec3b56b.tar.xz
mgaonline-933c47d5a2f6acd18081d4aeb58f49ab6ec3b56b.zip
(harvester) update status once MandrivaUpdate completed
-rwxr-xr-xmdkapplet7
1 files changed, 6 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index ad2040f3..d3750849 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -193,12 +193,17 @@ my $mdv_update_pid;
sub harvester {
my ($_signame, $clean) = @_;
my ($childpid, @pids);
+ my $mdvupdate_returned;
do {
$childpid = waitpid(-1, &WNOHANG);
- undef $mdv_update_pid if $mdv_update_pid == $childpid;
+ if ($mdv_update_pid == $childpid) {
+ undef $mdv_update_pid;
+ $mdvupdate_returned = 1;
+ }
push @pids, $childpid;
WIFEXITED($?) and refresh_gui(1);
} while $childpid > 0;
+ Glib::Timeout->add(200, sub { silentCheck(); 0 }) if $mdvupdate_returned;
return @pids;
}
sub fork_exec {