Squid-2.2.STABLE2: comm_poll NULL write handler warning This patch is an attempt in fixing/locating those "NULL write handler" warnings which may be seen when poll is enabled. Index: squid/src/comm_select.c diff -u squid/src/comm_select.c:1.1.1.8 squid/src/comm_select.c:1.1.1.8.10.1 --- squid/src/comm_select.c:1.1.1.8 Sun Jan 24 09:34:08 1999 +++ squid/src/comm_select.c Fri May 7 16:08:55 1999 @@ -199,15 +199,15 @@ if ((hdl = fd_table[fd].read_handler)) { fd_table[fd].read_handler = NULL; hdl(fd, &incame); - } else - debug(5, 1) ("comm_poll_incoming: NULL read handler\n"); + } else if (revents & (POLLRDNORM | POLLIN)) + debug(5, 1) ("comm_poll_incoming: fd %d NULL read handler\n", fd); } if (revents & (POLLWRNORM | POLLOUT | POLLHUP | POLLERR)) { if ((hdl = fd_table[fd].write_handler)) { fd_table[fd].write_handler = NULL; hdl(fd, &incame); - } else - debug(5, 1) ("comm_poll_incoming: NULL write handler\n"); + } else if (revents & (POLLWRNORM | POLLOUT)) + debug(5, 1) ("comm_poll_incoming: fd %d NULL write handler\n", fd); } } return incame;