From c37b9502fd00e03d7722314f94beb4f1441f621f Mon Sep 17 00:00:00 2001 From: Arch Librarian <arch@canonical.com> Date: Mon, 20 Sep 2004 16:58:29 +0000 Subject: Various bug fixes Author: jgg Date: 2001-07-01 20:49:08 GMT Various bug fixes --- methods/http.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'methods') 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) { -- cgit v1.2.3