From bd22007651be2c24b815b8640d4b6777ddcdb04a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Wed, 23 Mar 2016 02:58:13 +0000 Subject: [PATCH] [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 --- main/gbx/gbx_stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/gbx/gbx_stream.c b/main/gbx/gbx_stream.c index 8d5b07924..def6f0cce 100644 --- a/main/gbx/gbx_stream.c +++ b/main/gbx/gbx_stream.c @@ -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, ""); } }