]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1102: O_NONBLOCK on disk files is not a wise idea as this
authorhno <>
Sun, 7 Nov 2004 04:37:59 +0000 (04:37 +0000)
committerhno <>
Sun, 7 Nov 2004 04:37:59 +0000 (04:37 +0000)
is not standardized, and results may be unexpected.

Especially considering Linux now starts to add O_NONBLOCK support
on disk files but the implementation is far from complete yet.

src/disk.cc

index 80572a5338ba1f3fe8484b861a354e90232a5ee8..20a4ca5e508a1e1172f4a7ccee1f9008c1ed2762 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: disk.cc,v 1.165 2003/04/24 06:35:08 hno Exp $
+ * $Id: disk.cc,v 1.166 2004/11/06 21:37:59 hno Exp $
  *
  * DEBUG: section 6     Disk I/O Routines
  * AUTHOR: Harvest Derived
@@ -67,8 +67,6 @@ file_open(const char *path, int mode)
     if (FILE_MODE(mode) == O_WRONLY)
         mode |= O_APPEND;
 
-    mode |= SQUID_NONBLOCK;
-
     errno = 0;
 
     fd = open(path, mode, 0644);