Re: cvs: php-src /main/streams plain_wrapper.c
| From: | Antony Dovgal | Date: | Wed, 11 Jul 2007 07:06:20 +0000 |
| Subject: | Re: cvs: php-src /main/streams plain_wrapper.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-45195@lists.php.net to get a copy of this message | ||
MFH ?
On 11.07.2007 00:13, Sascha Schumann wrote:
sas Tue Jul 10 20:13:29 2007 UTC-- Wbr, Antony DovgalModified files: /php-src/main/streams plain_wrapper.c Log:- fix concurrent reader/writer use case(we read, while the other process writes -> if we don't try read we won't notice that the file has been growing.) http://cvs.php.net/viewvc.cgi/php-src/main/streams/plain_wrapper.c?r1=1.88&r2=1.89&diff_format=uIndex: php-src/main/streams/plain_wrapper.c diff -u php-src/main/streams/plain_wrapper.c:1.88 php-src/main/streams/plain_wrapper.c:1.89 --- php-src/main/streams/plain_wrapper.c:1.88 Mon May 28 23:00:24 2007 +++ php-src/main/streams/plain_wrapper.c Tue Jul 10 20:13:29 2007 @@ -16,7 +16,7 @@+----------------------------------------------------------------------+*/ -/* $Id: plain_wrapper.c,v 1.88 2007/05/28 23:00:24 iliaa Exp $ */ +/* $Id: plain_wrapper.c,v 1.89 2007/07/10 20:13:29 sas Exp $ */ #include "php.h" #include "php_globals.h" @@ -333,9 +333,6 @@ assert(data != NULL); if (data->fd >= 0) { - if (stream->eof && !data->is_pipe) { - return 0; - } ret = read(data->fd, buf, count); if (ret == (size_t)-1 && errno == EINTR) {