Make EOF error conditionally non-fatal (XB)
[xboard.git] / dialogs.c
index 252fffa..6380b77 100644 (file)
--- a/dialogs.c
+++ b/dialogs.c
@@ -2348,6 +2348,11 @@ DisplayFatalError (String message, int error, int status)
 {
     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);