]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire.cc
Fixed typo
[apt.git] / apt-pkg / acquire.cc
index a78dd1906c57d8ac4b1cd44169ca9d96f12edfaa..80624f9d3341bbc209123b8ca9b94cecc10490ff 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: acquire.cc,v 1.27 1999/03/13 23:30:04 jgg Exp $
+// $Id: acquire.cc,v 1.29 1999/03/16 00:43:55 jgg Exp $
 /* ######################################################################
 
    Acquire - File Acquiration
@@ -297,7 +297,13 @@ bool pkgAcquire::Run()
       FD_ZERO(&WFds);
       SetFds(Highest,&RFds,&WFds);
       
-      int Res = select(Highest+1,&RFds,&WFds,0,&tv);
+      int Res;
+      do
+      {
+        Res = select(Highest+1,&RFds,&WFds,0,&tv);
+      }
+      while (Res < 0 && errno == EINTR);
+      
       if (Res < 0)
       {
         _error->Errno("select","Select has failed");
@@ -709,7 +715,7 @@ void pkgAcquireStatus::Pulse(pkgAcquire *Owner)
       else
         CurrentCPS = (CurrentBytes - LastBytes)/Delta;
       LastBytes = CurrentBytes;
-      ElapsedTime = Delta;
+      ElapsedTime = (unsigned long)Delta;
       Time = NewTime;
    }
 }