From: Sascha Schumann Date: Tue, 10 Jul 2007 20:13:29 +0000 (+0000) Subject: - fix concurrent reader/writer use case X-Git-Tag: BEFORE_IMPORT_OF_MYSQLND~259 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad31680f346d84ed2e315ff088be1fbdfc3b48d6;p=php - 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.) --- diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index fcedd0d2a4..3fee1514ed 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -333,9 +333,6 @@ static size_t php_stdiop_read(php_stream *stream, char *buf, size_t count TSRMLS 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) {