]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/deb/dpkgpm.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Mon, 27 Aug 2007 12:28:27 +0000 (14:28 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Mon, 27 Aug 2007 12:28:27 +0000 (14:28 +0200)
  - on error in select() continue

apt-pkg/deb/dpkgpm.cc

index 68f0a339f0bbe5d4934edf848dd0c10eb49019ce..343e3d82f7b0fb2cc016773a6e0ae940c1b8014a 100644 (file)
@@ -813,9 +813,10 @@ bool pkgDPkgPM::Go(int OutStatusFd)
         tv.tv_sec = 1;
         tv.tv_usec = 0;
         select_ret = select(max(master, _dpkgin)+1, &rfds, NULL, NULL, &tv);
-        if (select_ret < 0)
+        if (select_ret < 0) {
            std::cerr << "Error in select()" << std::endl;
-        else if (select_ret == 0)
+           continue;
+        } else if (select_ret == 0)
            continue;
 
         if(master >= 0 && FD_ISSET(master, &rfds))