--------------------- PatchSet 5134 Date: 2002/09/26 06:11:10 Author: adri Branch: commloops Tag: (none) Log: * use the read method instead of read() * track syscall Members: src/comm.c:1.21.4.4->1.21.4.5 Index: squid/src/comm.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/comm.c,v retrieving revision 1.21.4.4 retrieving revision 1.21.4.5 diff -u -r1.21.4.4 -r1.21.4.5 --- squid/src/comm.c 26 Sep 2002 06:08:04 -0000 1.21.4.4 +++ squid/src/comm.c 26 Sep 2002 06:11:10 -0000 1.21.4.5 @@ -1,6 +1,6 @@ /* - * $Id: comm.c,v 1.21.4.4 2002/09/26 06:08:04 adri Exp $ + * $Id: comm.c,v 1.21.4.5 2002/09/26 06:11:10 adri Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -226,7 +226,8 @@ assert(Fc->read.handler != NULL); /* Attempt a read */ - retval = read(fd, Fc->read.buf, Fc->read.size); + statCounter.syscalls.sock.reads++; + retval = FD_READ_METHOD(fd, Fc->read.buf, Fc->read.size); if (retval < 0 && !ignoreErrno(errno)) { comm_read_callback(fd, -1, COMM_ERROR, errno); return;