When the ICS Chat window is open, an EOF fromkeyboard is ignored.
DisplayFatalError(_("Error reading from keyboard"), error, 1);
} else if (gotEof++ > 0) {
RemoveInputSource(isr);
- DisplayFatalError(_("Got end of file from keyboard"), 0, 0);
+ DisplayFatalError(_("Got end of file from keyboard"), 0, 666); // [HGM] 666 is kludge to alert front end
}
}
{
char buf[MSG_SIZ];
+ if(status == 666) { // ignore this error when ICS Console window is up
+ if(shellUp[ChatDlg]) return;
+ status = 0;
+ }
+
errorExitStatus = status;
if (error == 0) {
fprintf(stderr, "%s: %s\n", programName, message);