# HG changeset patch # User Karoly Lorentey # Date 1086474864 0 # Node ID 3708519cf113710efeac99b52ca209d352c1ea50 # Parent fe5ecb72e304bef676087196f2288cf3a5e403db Make sure the SIGWINCH handler is always set (rep. by Yoshiaki Kasahara). * src/dispnew.c (init_display): Always install handler for SIGWINCH. (Reported by Yoshiaki Kasahara .) git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-186 diff -r fe5ecb72e304 -r 3708519cf113 src/dispnew.c --- a/src/dispnew.c Sat Jun 05 17:21:43 2004 +0000 +++ b/src/dispnew.c Sat Jun 05 22:34:24 2004 +0000 @@ -6616,6 +6616,16 @@ during startup. */ Vinitial_window_system = Qnil; + /* SIGWINCH needs to be handled no matter what display we start + with. Otherwise newly opened tty frames will not resize + automatically. */ +#ifdef SIGWINCH +#ifndef CANNOT_DUMP + if (initialized) +#endif /* CANNOT_DUMP */ + signal (SIGWINCH, window_change_signal); +#endif /* SIGWINCH */ + /* If the user wants to use a window system, we shouldn't bother initializing the terminal. This is especially important when the terminal is so dumb that emacs gives up before and doesn't bother @@ -6766,13 +6776,6 @@ adjust_frame_glyphs_initially (); calculate_costs (XFRAME (selected_frame)); -#ifdef SIGWINCH -#ifndef CANNOT_DUMP - if (initialized) -#endif /* CANNOT_DUMP */ - signal (SIGWINCH, window_change_signal); -#endif /* SIGWINCH */ - /* Set up faces of the initial terminal frame of a dumped Emacs. */ if (initialized && !noninteractive