diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-16 19:25:04 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-16 19:25:04 +0000 |
commit | 933c47d5a2f6acd18081d4aeb58f49ab6ec3b56b (patch) | |
tree | 0fca8dc114caacb6e71060fc6c907cbfbc045b11 | |
parent | 7b1c7028c55720ad5352bf7cb0995a0c3c5d4152 (diff) | |
download | mgaonline-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-x | mdkapplet | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 { |