diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-06 16:22:13 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-06 16:22:13 +0000 |
commit | 6ea41b4ea390c96373232246f1e1906ffac5f078 (patch) | |
tree | e7440fee38b57681e4a7c0334dbeb5477f9e1650 /mdkapplet | |
parent | 307f1590784e72bfee1a5f27752f951c0a3d1229 (diff) | |
download | mgaonline-6ea41b4ea390c96373232246f1e1906ffac5f078.tar mgaonline-6ea41b4ea390c96373232246f1e1906ffac5f078.tar.gz mgaonline-6ea41b4ea390c96373232246f1e1906ffac5f078.tar.bz2 mgaonline-6ea41b4ea390c96373232246f1e1906ffac5f078.tar.xz mgaonline-6ea41b4ea390c96373232246f1e1906ffac5f078.zip |
(harvester) factorize code
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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}); |