Patch to use xfopen from Jeff Garzik

This commit is contained in:
Eric Andersen committed 2001-03-23 17:09:15 +00:00
1 parent f6aa13d403
commit 21af752b04
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@ extern int more_main(int argc, char **argv)
#ifdef BB_FEATURE_USE_TERMIOS
cin = fopen("/dev/tty", "r");
if (!cin)
cin = fopen("/dev/console", "r");
cin = xfopen("/dev/console", "r");
getTermSettings(fileno(cin), &initial_settings);
new_settings = initial_settings;
new_settings.c_cc[VMIN] = 1;
+1 -1
View File
@@ -91,7 +91,7 @@ extern int more_main(int argc, char **argv)
#ifdef BB_FEATURE_USE_TERMIOS
cin = fopen("/dev/tty", "r");
if (!cin)
cin = fopen("/dev/console", "r");
cin = xfopen("/dev/console", "r");
getTermSettings(fileno(cin), &initial_settings);
new_settings = initial_settings;
new_settings.c_cc[VMIN] = 1;