From ef3b0a0644bdd76ac91f49130083f0778de280f4 Mon Sep 17 00:00:00 2001 From: matthieu Date: Sun, 24 Feb 2008 22:22:48 +0000 Subject: [PATCH] Fix initialization of vmin. This has caused script(1) to exit immediatly when started inside an xterm that started with vmin=0 (because it had no tty to inherit the correct value from). ok kettenis@, krw@, oga@. --- app/xterm/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/xterm/main.c b/app/xterm/main.c index 99279d899..7011fb0cd 100644 --- a/app/xterm/main.c +++ b/app/xterm/main.c @@ -1866,10 +1866,6 @@ main(int argc, char *argv[]ENVP_ARG) #ifndef USE_TERMIOS /* { */ d_tio.c_line = 0; #endif /* } */ -#if defined(USE_TERMIOS) || defined(USE_POSIX_TERMIOS) /* { */ - d_tio.c_cc[VMIN] = 1; - d_tio.c_cc[VTIME] = 0; -#endif /* } */ #ifdef HAS_LTCHARS /* { */ d_ltc.t_suspc = CSUSP; /* t_suspc */ d_ltc.t_dsuspc = CDSUSP; /* t_dsuspc */ @@ -1932,6 +1928,10 @@ main(int argc, char *argv[]ENVP_ARG) } } } +#if defined(USE_TERMIOS) || defined(USE_POSIX_TERMIOS) /* { */ + d_tio.c_cc[VMIN] = 1; + d_tio.c_cc[VTIME] = 0; +#endif /* } */ #ifdef HAS_LTCHARS /* { */ d_ltc.t_suspc = CharOf('\000'); /* t_suspc */ d_ltc.t_dsuspc = CharOf('\000'); /* t_dsuspc */