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 {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php