]> code.citadel.org Git - citadel.git/blobdiff - citadel/screen.c
* Exit the citadel client when EOF reached on input - should prevent
[citadel.git] / citadel / screen.c
index 26f0b6c8fd3e57b190565386c38a13a665a4136f..0822b0ce91cedf7828b35a547ac09e30693336df 100644 (file)
@@ -335,7 +335,8 @@ int scr_getc(int delay)
 #endif
 
        buf = '\0';
-       read (0, &buf, 1);
+       if (!read (0, &buf, 1))
+               logoff(NULL, 3);
        return buf;
 }