* slint.c (getch): If there is EOF on the input, exit

immediately, don't use quiet_quit_cmd().
Reported by Steven P. Ulrick <spu@faith4miracle.org>
This commit is contained in:
Pavel Roskin 2003-02-03 18:00:34 +00:00
parent 4b685b1862
commit 482e675156
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-02-03 Pavel Roskin <proski@gnu.org>
* slint.c (getch): If there is EOF on the input, exit
immediately, don't use quiet_quit_cmd().
Reported by Steven P. Ulrick <spu@faith4miracle.org>
2003-01-28 Pavel Roskin <proski@gnu.org>
* util.c (name_quote): Don't quote ':', '~' and '@'. Quote '#'

View File

@ -507,8 +507,7 @@ getch (void)
fprintf (stderr,
"SLang_getkey returned SLANG_GETKEY_ERROR\n"
"Assuming EOF on stdin and exiting\n");
quiet_quit_cmd ();
return -1;
exit (1);
}
return c;
}