[INTERPRETER]

* BUG: Don't wait for a stream to be ready for reading if the stream has no
  underlying file descriptor.


git-svn-id: svn://localhost/gambas/trunk@5633 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2013-05-01 13:02:38 +00:00
parent 4c31d1950b
commit 0a5be7890d

View file

@ -74,7 +74,11 @@ void STREAM_exit(void)
STREAM_close(&_temp_stream);
}
#define wait_for_fd_ready_to_read(_fd) WATCH_process(_fd, -1, 0)
static void wait_for_fd_ready_to_read(fd)
{
if (fd >= 0)
WATCH_process(fd, -1, 0);
}
bool STREAM_in_archive(const char *path)
{