Browse Source

* 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>

Pavel Roskin 22 years ago
parent
commit
482e675156
2 changed files with 7 additions and 2 deletions
  1. 6 0
      src/ChangeLog
  2. 1 2
      src/slint.c

+ 6 - 0
src/ChangeLog

@@ -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 '#'

+ 1 - 2
src/slint.c

@@ -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;
 }