[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:
parent
637e5141f7
commit
b4c89ab52b
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue