mirror of
https://github.com/php/php-src.git
synced 2024-09-27 04:47:22 +00:00
- 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.)
This commit is contained in:
parent
9993892a18
commit
ad31680f34
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user