[INTERPRETER]

* BUG: Ignore EINPROGRESS and EAGAIN error codes when closing a file descriptor.


git-svn-id: svn://localhost/gambas/trunk@7658 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2016-03-23 02:58:13 +00:00
parent 82a4b1f919
commit bd22007651

View file

@ -295,7 +295,7 @@ void STREAM_close(STREAM *stream)
{
if ((*(stream->type->close))(stream))
{
if (errno != EBADF)
if (errno != EBADF && errno != EINPROGRESS && errno != EAGAIN)
THROW_SYSTEM(errno, "");
}
}