Dear squid-users,

here's a small patch to make squid 2.2pre1 compile on my
i586-pc-linux-gnu system. 

There seems to be a problem with async io on linux using
pthreads. After I start squid it eats 99% CPU time and does nothing.
Even telnet to port 3128 doesn't work. This patch is not a fix for
this particular bug. I just wanted to report it and will try to
submit a reasonable bug-report this afternoon.

cheers,
Patrick
diff -ru squid-2.2.PRE1/src/async_io.c squid-2.2.PRE1.patch/src/async_io.c
--- squid-2.2.PRE1/src/async_io.c       Thu Jan 21 22:12:59 1999
+++ squid-2.2.PRE1.patch/src/async_io.c Sat Jan 30 03:27:53 1999
@@ -367,7 +367,7 @@
     storeAppendPrintf(sentry, "stat\t%d\n", aio_counts.stat);
     storeAppendPrintf(sentry, "unlink\t%d\n", aio_counts.unlink);
     storeAppendPrintf(sentry, "check_callback\t%d\n", aio_counts.check_callback);
-    storeAppendPrintf(sentry, "\noutunlink\t%d\n", outunlink);
+    /* storeAppendPrintf(sentry, "\noutunlink\t%d\n", outunlink); */
 }
 
 /* Flush all pending I/O */
diff -ru squid-2.2.PRE1/src/disk.c squid-2.2.PRE1.patch/src/disk.c
--- squid-2.2.PRE1/src/disk.c   Thu Jan 21 22:13:00 1999
+++ squid-2.2.PRE1.patch/src/disk.c     Sat Jan 30 03:33:31 1999
@@ -286,8 +286,8 @@
        debug(50, 0) ("KARMA: q != data (%p, %p)\n", q, p);
        debug(50, 0) ("KARMA: (%d, %d, %d FD %d)\n",
            q->buf_offset, q->len, len, fd);
-       debug(50, 0) ("KARMA: desc %s, type %d, open %d, flags 0x%x\n",
-           F->desc, F->type, F->open, F->flags);
+       debug(50, 0) ("KARMA: desc %s, type %d, flags 0x%x\n",
+           F->desc, F->type, F->flags);
        debug(50, 0) ("KARMA: (%d, %d)\n", p->buf_offset, p->len);
        len = -1;
        errcode = EFAULT;

Reply via email to