]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
make comm_select() and comm_poll() use ignoreErrno()
authorwessels <>
Wed, 8 Apr 1998 23:24:49 +0000 (23:24 +0000)
committerwessels <>
Wed, 8 Apr 1998 23:24:49 +0000 (23:24 +0000)
src/comm.cc

index 81e018e4b2835633e9f5b3fe636882e2c5059c5b..e7eb8c5d1b6c66d309cf526ca40e77ca0750fd85 100644 (file)
@@ -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());