[INTERPRETER]
* BUG: Fix "stop watching on end of file" algorithm again. git-svn-id: svn://localhost/gambas/trunk@5817 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
ef8307793d
commit
aa99eaa6bf
1 changed files with 5 additions and 1 deletions
|
@ -430,6 +430,9 @@ int STREAM_read_max(STREAM *stream, void *addr, int len)
|
|||
if (errno == EINTR)
|
||||
continue;
|
||||
|
||||
if (errno == 0)
|
||||
stop_watching(stream, GB_WATCH_READ);
|
||||
|
||||
switch(errno)
|
||||
{
|
||||
case 0:
|
||||
|
@ -563,7 +566,8 @@ static void fill_buffer(STREAM *stream, char *addr)
|
|||
if (errno == EINTR)
|
||||
continue;
|
||||
|
||||
stop_watching(stream, GB_WATCH_READ);
|
||||
if (errno == 0)
|
||||
stop_watching(stream, GB_WATCH_READ);
|
||||
|
||||
switch(errno)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue