[INTERPRETER]

* BUG: Do read ahead for any watched file descriptor. It may break when 
  watching special device files, depending on its internal kernel driver 
  behaviour. We'll see.


git-svn-id: svn://localhost/gambas/trunk@6708 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2014-12-03 12:13:35 +00:00
parent 637e5141f7
commit b4c89ab52b

View file

@ -59,7 +59,8 @@ static char _buffer[16];
static void callback_read(int fd, int type, CFILE *file)
{
GB_Raise(file, EVENT_Read, 0);
if (!STREAM_read_ahead(CSTREAM_stream(file)))
GB_Raise(file, EVENT_Read, 0);
}