summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:58:29 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:58:29 +0000
commitc37b9502fd00e03d7722314f94beb4f1441f621f (patch)
tree84efe6a966b8515b7c7056a27103e2a1752d2d99 /methods
parent11e97c45a67ab4a33975d178889cb4399c7dc01b (diff)
Various bug fixes
Author: jgg Date: 2001-07-01 20:49:08 GMT Various bug fixes
Diffstat (limited to 'methods')
-rw-r--r--methods/http.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc
index 1c3f61caa..6e989102b 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: http.cc,v 1.52 2001/05/27 23:53:55 jgg Exp $
+// $Id: http.cc,v 1.53 2001/07/01 20:49:09 jgg Exp $
/* ######################################################################
HTTP Aquire Method - This is the HTTP aquire method for APT.
@@ -726,7 +726,11 @@ bool HttpMethod::Go(bool ToFile,ServerState *Srv)
tv.tv_usec = 0;
int Res = 0;
if ((Res = select(MaxFd+1,&rfds,&wfds,0,&tv)) < 0)
+ {
+ if (errno == EINTR)
+ return true;
return _error->Errno("select","Select failed");
+ }
if (Res == 0)
{