diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-02-25 01:41:58 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-02-25 01:41:58 +0000 |
commit | 9e0fb1a33cf3e2069a63082ca14e0975b302fc13 (patch) | |
tree | e0522227b20bcb3e2e970827213075f0143a6c1e /main/streams/plain_wrapper.c | |
parent | 862634ffa582e111e9a30e02f6e268e3cfb241ac (diff) | |
download | php-git-9e0fb1a33cf3e2069a63082ca14e0975b302fc13.tar.gz |
Use native flock() whenever possible.
Diffstat (limited to 'main/streams/plain_wrapper.c')
-rw-r--r-- | main/streams/plain_wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |