From: wessels <> Date: Wed, 8 Apr 1998 23:24:49 +0000 (+0000) Subject: make comm_select() and comm_poll() use ignoreErrno() X-Git-Tag: SQUID_3_0_PRE1~3566 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee264d619399bbc382442a69f6ac02dbb27667d2;p=thirdparty%2Fsquid.git make comm_select() and comm_poll() use ignoreErrno() --- diff --git a/src/comm.cc b/src/comm.cc index 81e018e4b2..e7eb8c5d1b 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,7 +1,7 @@ /* - * $Id: comm.cc,v 1.245 1998/04/08 17:22:12 wessels Exp $ + * $Id: comm.cc,v 1.246 1998/04/08 17:24:49 wessels Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -914,7 +914,7 @@ comm_poll(time_t sec) Counter.select_loops++; if (num >= 0) break; - if (errno == EINTR) + if (ignoreErrno(errno)) continue; debug(5, 0) ("comm_poll: poll failure: %s\n", xstrerror()); assert(errno != EINVAL); @@ -1062,7 +1062,7 @@ comm_select(time_t sec) Counter.select_loops++; if (num >= 0) break; - if (errno == EINTR) + if (ignoreErrno(errno)) break; debug(50, 0) ("comm_select: select failure: %s\n", xstrerror());