summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-06 16:21:36 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-06 16:21:36 +0000
commit307f1590784e72bfee1a5f27752f951c0a3d1229 (patch)
treec5612a7dbf5034c3663b45d652828ace9306841b
parentf42c21506e47cd6ffb354cb08663d173caa9521a (diff)
downloadmgaonline-307f1590784e72bfee1a5f27752f951c0a3d1229.tar
mgaonline-307f1590784e72bfee1a5f27752f951c0a3d1229.tar.gz
mgaonline-307f1590784e72bfee1a5f27752f951c0a3d1229.tar.bz2
mgaonline-307f1590784e72bfee1a5f27752f951c0a3d1229.tar.xz
mgaonline-307f1590784e72bfee1a5f27752f951c0a3d1229.zip
(harvester) compute child status earlier (safer and needed for next commit)
-rwxr-xr-xmdkapplet2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index 81679aa0..3dfb216e 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -322,10 +322,10 @@ sub harvester {
do {
$childpid = waitpid(-1, &WNOHANG);
if ($mdv_update_pid && $mdv_update_pid == $childpid) {
+ my $status = $? >> 8;
undef $mdv_update_pid;
if ($refork_gurpmi) {
undef $refork_gurpmi;
- my $status = $? >> 8;
fork_gurpmi() if $status;
} else {
$mdvupdate_returned = 1;