changeset 83146:3708519cf113

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 <kasahara@nc.kyushu-u.ac.jp>.) git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-186
author Karoly Lorentey <lorentey@elte.hu>
date Sat, 05 Jun 2004 22:34:24 +0000
parents fe5ecb72e304
children 9b7814160efe
files src/dispnew.c
diffstat 1 files changed, 10 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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