Re: cvs: php-src /main/streams plain_wrapper.c
| From: | Jani Taskinen | Date: | Wed, 11 Jul 2007 07:20:11 +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-45197@lists.php.net to get a copy of this message | ||
Shouldn't this be MFH'd??
--Jani
On Tue, 2007-07-10 at 20:13 +0000, Sascha Schumann wrote:
> sas Tue Jul 10 20:13:29 2007 UTC
>
> Modified 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=u
> Index: 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) {
>