From: hno <> Date: Sun, 28 Apr 2002 20:55:40 +0000 (+0000) Subject: Use FD_READ_METHOD rather than direcly calling read() X-Git-Tag: SQUID_3_0_PRE1~1029 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7981f61f5755bd028f4bfeb01567e60c31b969c;p=thirdparty%2Fsquid.git Use FD_READ_METHOD rather than direcly calling read() --- diff --git a/src/helper.cc b/src/helper.cc index feb0905136..29cddc8742 100644 --- a/src/helper.cc +++ b/src/helper.cc @@ -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);