cvs: php4 /main/streams plain_wrapper.c
| From: | Ilia Alshanetsky | Date: | Tue, 25 Feb 2003 01:41:58 +0000 |
| Subject: | cvs: php4 /main/streams plain_wrapper.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-19163@lists.php.net to get a copy of this message | ||
iliaa Mon Feb 24 20:41:58 2003 EDT
Modified files:
/php4/main/streams plain_wrapper.c
Log:
Use native flock() whenever possible.
Index: php4/main/streams/plain_wrapper.c
diff -u php4/main/streams/plain_wrapper.c:1.4 php4/main/streams/plain_wrapper.c:1.5
--- php4/main/streams/plain_wrapper.c:1.4 Mon Feb 24 20:39:06 2003
+++ php4/main/streams/plain_wrapper.c Mon Feb 24 20:41:58 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: plain_wrapper.c,v 1.4 2003/02/25 01:39:06 iliaa Exp $ */
+/* $Id: plain_wrapper.c,v 1.5 2003/02/25 01:41:58 iliaa Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -561,7 +561,7 @@
return 0;
}
- if (!php_flock(fd, value) || (errno == EWOULDBLOCK && value & LOCK_NB)) {
+ if (!flock(fd, value) || (errno == EWOULDBLOCK && value & LOCK_NB)) {
data->lock_flag = value;
return 0;
} else {