You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@locus.apache.org on 2000/06/17 20:16:10 UTC
cvs commit: apache-2.0/src/lib/apr/file_io/unix open.c
trawick 00/06/17 11:16:10
Modified: src/lib/apr/file_io/unix open.c
Log:
Don't get a lock for the ap_file_t in ap_put_os_file(); we
won't ever use it, as there is no way to enable buffering for
such an ap_file_t created this way.
Revision Changes Path
1.56 +3 -4 apache-2.0/src/lib/apr/file_io/unix/open.c
Index: open.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/open.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- open.c 2000/06/16 16:40:49 1.55
+++ open.c 2000/06/17 18:16:10 1.56
@@ -215,10 +215,9 @@
(*file)->buffered = 0;
(*file)->timeout = -1;
(*file)->filedes = *dafile;
- /* buffer already NULL */
-#if APR_HAS_THREADS
- ap_create_lock(&((*file)->thlock), APR_MUTEX, APR_INTRAPROCESS, NULL, cont);
-#endif
+ /* buffer already NULL;
+ * don't get a lock (only for buffered files)
+ */
return APR_SUCCESS;
}