ntent='cgit v1.2.1'/>
summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-11-24 00:44:44 +0000
committerThierry Vignaud <tv@mandriva.org>2008-11-24 00:44:44 +0000
commit15e7ec6839a48e96b72af66c7091f278994fb7ae (patch)
treee91f7b73f4f59ff713bafce333be88191aca5486 /mdkapplet
parent0464f79b82e0d2768d9fb6d5776ca2fc68522f78 (diff)
downloadmgaonline-15e7ec6839a48e96b72af66c7091f278994fb7ae.tar
mgaonline-15e7ec6839a48e96b72af66c7091f278994fb7ae.tar.gz
mgaonline-15e7ec6839a48e96b72af66c7091f278994fb7ae.tar.bz2
mgaonline-15e7ec6839a48e96b72af66c7091f278994fb7ae.tar.xz
mgaonline-15e7ec6839a48e96b72af66c7091f278994fb7ae.zip
(harvester) rename '$mdvupdate_returned' as more meaningfull 'schedule_checks'
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdkapplet b/mdkapplet
index bdbf61f3..e043cebd 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -327,13 +327,13 @@ my ($mdv_update_pid, $checker_pid, $media_manager_pid);
sub harvester {
my ($_signame, $_clean) = @_;
my ($childpid, @pids);
- my $mdvupdate_returned;
+ my $schedule_checks;
do {
$childpid = waitpid(-1, &WNOHANG);
my $status = $? >> 8;
if ($mdv_update_pid && $mdv_update_pid == $childpid) {
undef $mdv_update_pid;
- $mdvupdate_returned = 1;
+ $schedule_checks = 1;
} elsif ($checker_pid && $checker_pid == $childpid) {
undef $checker_pid;
my ($state) = grep { $_->{code} eq $status } values %comm_codes;
@@ -349,7 +349,7 @@ sub harvester {
}
push @pids, $childpid;
} while $childpid > 0;
- Glib::Timeout->add(200, sub { silentCheck(); 0 }) if $mdvupdate_returned;
+ Glib::Timeout->add(200, sub { silentCheck(); 0 }) if $schedule_checks;
return @pids;
}