X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gtk%2Fxboard.c;h=8537eafc69314e8bdbcce163545077beddefc708;hb=247b78e04059c63bb74ad0cc3bb81f93e0636b95;hp=aff56ccf9b63bbad678ffe8133b4588892de5020;hpb=cb191ea933dfac6b9b4ea68508886fbc05f7adc5;p=xboard.git diff --git a/gtk/xboard.c b/gtk/xboard.c index aff56cc..8537eaf 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -1970,6 +1970,11 @@ DoInputCallback(io, cond, data) count = read(is->fd, is->unused, INPUT_SOURCE_BUF_SIZE - (is->unused - is->buf)); if (count <= 0) { + if(count == 0 && is->kind == CPReal && shells[ChatDlg]) { // [HGM] absence of terminal is no error if ICS Console present + RemoveInputSource(is); // cease reading stdin + stdoutClosed = TRUE; // suppress future output + return True; + } (is->func)(is, is->closure, is->buf, count, count ? errno : 0); return True; }