]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Use FD_READ_METHOD rather than direcly calling read()
authorhno <>
Sun, 28 Apr 2002 20:55:40 +0000 (20:55 +0000)
committerhno <>
Sun, 28 Apr 2002 20:55:40 +0000 (20:55 +0000)
src/helper.cc

index feb09051361d70fbc712b8c40a35fa2a11ad1202..29cddc87421dd63544205202dfb0033d948e378e 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: helper.cc,v 1.35 2002/04/13 23:07:50 hno Exp $
+ * $Id: helper.cc,v 1.36 2002/04/28 14:55:40 hno Exp $
  *
  * DEBUG: section 29    Helper process maintenance
  * AUTHOR: Harvest Derived?
@@ -756,7 +756,7 @@ helperStatefulHandleRead(int fd, void *data)
     assert(fd == srv->rfd);
     assert(cbdataReferenceValid(data));
     statCounter.syscalls.sock.reads++;
-    len = read(fd, srv->buf + srv->offset, srv->buf_sz - srv->offset);
+    len = FD_READ_METHOD(fd, srv->buf + srv->offset, srv->buf_sz - srv->offset);
     fd_bytes(fd, len, FD_READ);
     debug(29, 5) ("helperStatefulHandleRead: %d bytes from %s #%d.\n",
        len, hlp->id_name, srv->index + 1);