From 89339bf9d5372fdd03cda6069b6b98b7b62d97ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Wed, 27 Apr 2016 00:05:54 +0000 Subject: [PATCH] [INTERPRETER] * BUG: Don't raise the write callback associated with a watched file descriptor if the read callback has disabled it. git-svn-id: svn://localhost/gambas/trunk@7748 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- main/gbx/gbx_watch.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/gbx/gbx_watch.c b/main/gbx/gbx_watch.c index 2da4261ef..cefb06685 100644 --- a/main/gbx/gbx_watch.c +++ b/main/gbx/gbx_watch.c @@ -500,6 +500,9 @@ static void raise_callback(fd_set *rfd, fd_set *wfd) } } + if (watch_callback[i].fd < 0) + continue; + if (FD_ISSET(wcb.fd, wfd)) { FD_CLR(wcb.fd, wfd);