From 9e0fb1a33cf3e2069a63082ca14e0975b302fc13 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 25 Feb 2003 01:41:58 +0000 Subject: [PATCH] Use native flock() whenever possible. --- main/streams/plain_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 18dd1ef77b..0d7d1bba21 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -561,7 +561,7 @@ static int php_stdiop_set_option(php_stream *stream, int option, int value, void 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 { -- 2.50.1