[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:
Benoît Minisini 2013-08-29 20:21:20 +00:00
parent ef8307793d
commit aa99eaa6bf

View file

@ -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)
{