]> git.pld-linux.org Git - packages/squid.git/commitdiff
- fix for 100% CPU usage on new/experimental Linux kernels
authorhawk <hawk@pld-linux.org>
Wed, 17 Nov 2004 21:51:37 +0000 (21:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    squid-2.5.STABLE7-non_blocking_disk.patch -> 1.1

squid-2.5.STABLE7-non_blocking_disk.patch [new file with mode: 0644]

diff --git a/squid-2.5.STABLE7-non_blocking_disk.patch b/squid-2.5.STABLE7-non_blocking_disk.patch
new file mode 100644 (file)
index 0000000..cf4ca44
--- /dev/null
@@ -0,0 +1,14 @@
+Index: squid/src/disk.c
+diff -c squid/src/disk.c:1.157.2.1 squid/src/disk.c:1.157.2.2
+*** squid/src/disk.c:1.157.2.1 Thu Aug  8 14:17:39 2002
+--- squid/src/disk.c   Sat Nov  6 14:37:12 2004
+***************
+*** 62,68 ****
+      int fd;
+      if (FILE_MODE(mode) == O_WRONLY)
+       mode |= O_APPEND;
+-     mode |= SQUID_NONBLOCK;
+      errno = 0;
+      fd = open(path, mode, 0644);
+      statCounter.syscalls.disk.opens++;
+--- 62,67 ----
This page took 0.093905 seconds and 4 git commands to generate.