]> granicus.if.org Git - php/commitdiff
- fix concurrent reader/writer use case
authorSascha Schumann <sas@php.net>
Tue, 10 Jul 2007 20:13:29 +0000 (20:13 +0000)
committerSascha Schumann <sas@php.net>
Tue, 10 Jul 2007 20:13:29 +0000 (20:13 +0000)
  (we read, while the other process writes -> if we don't try
   read we won't notice that the file has been growing.)

main/streams/plain_wrapper.c

index fcedd0d2a4dd31258ed21dc5ed046632c08687f8..3fee1514ed7ff922eb9127f1eb87573c7cee4ff7 100644 (file)
@@ -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) {