]> git.saurik.com Git - apt.git/commitdiff
merged from the dpkg-log branch
authorMichael Vogt <egon@bottom>
Wed, 3 Oct 2007 07:55:04 +0000 (09:55 +0200)
committerMichael Vogt <egon@bottom>
Wed, 3 Oct 2007 07:55:04 +0000 (09:55 +0200)
1  2 
apt-pkg/deb/dpkgpm.cc

index 92f96620f8cd9b0ee46a609bcbc0087c13194e4a,f83214344ab98e3aa8e034913087a24b7ae52d7d..4323b5fd2a35fb91783224f1c43c2d8afc144ab2
@@@ -818,16 -833,17 +841,16 @@@ 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) 
-           continue;
-        else if (select_ret < 0 && errno == EINTR)
-           continue;
-        else if (select_ret < 0) 
-        {
-           perror("select() returned error");
-           continue;
-        } 
-        
+        if (select_ret == 0) 
+           continue;
+        else if (select_ret < 0 && errno == EINTR)
+           continue;
+        else if (select_ret < 0) 
+        {
+           perror("select() returned error");
+           continue;
+        } 
 -
         if(master >= 0 && FD_ISSET(master, &rfds))
            DoTerminalPty(master);
         if(master >= 0 && FD_ISSET(0, &rfds))