summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-06 16:22:13 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-06 16:22:13 +0000
commit6ea41b4ea390c96373232246f1e1906ffac5f078 (patch)
treee7440fee38b57681e4a7c0334dbeb5477f9e1650
parent307f1590784e72bfee1a5f27752f951c0a3d1229 (diff)
downloadmgaonline-6ea41b4ea390c96373232246f1e1906ffac5f078.tar
mgaonline-6ea41b4ea390c96373232246f1e1906ffac5f078.tar.gz
mgaonline-6ea41b4ea390c96373232246f1e1906ffac5f078.tar.bz2
mgaonline-6ea41b4ea390c96373232246f1e1906ffac5f078.tar.xz
mgaonline-6ea41b4ea390c96373232246f1e1906ffac5f078.zip
(harvester) factorize code
-rwxr-xr-xmdkapplet3
1 files changed, 1 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index 3dfb216e..42fd6789 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -321,8 +321,8 @@ sub harvester {
my $mdvupdate_returned;
do {
$childpid = waitpid(-1, &WNOHANG);
+ my $status = $? >> 8;
if ($mdv_update_pid && $mdv_update_pid == $childpid) {
- my $status = $? >> 8;
undef $mdv_update_pid;
if ($refork_gurpmi) {
undef $refork_gurpmi;
@@ -332,7 +332,6 @@ sub harvester {
}
} elsif ($checker_pid && $checker_pid == $childpid) {
undef $checker_pid;
- my $status = $? >> 8;
my ($state) = grep { $_->{code} eq $status } values %comm_codes;
if ($state) {
logIt($state->{log});