mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02: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
1 changed files with 0 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue