aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/main.c')
-rw-r--r--gdb/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/main.c b/gdb/main.c
index 8543c3b..3546525 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -1216,6 +1216,10 @@ init_signals ()
if (signal (SIGHUP, do_nothing) != SIG_IGN)
signal (SIGHUP, disconnect);
signal (SIGFPE, float_handler);
+
+#if defined(SIGWINCH) && defined(SIGWINCH_HANDLER)
+ signal (SIGWINCH, SIGWINCH_HANDLER);
+#endif
}
/* Read one line from the command input stream `instream'