diff options
author | 2006-02-25 14:40:16 +0000 | |
---|---|---|
committer | 2006-02-25 14:40:16 +0000 | |
commit | db74fa37f028d27d3aee926ca4e86d0f5a9c0db2 (patch) | |
tree | 303fa898896595188eb8992dd5ed317f66be6d87 /usr.bin/mg/tty.c | |
parent | fix for hostapd_printf() from Andrey Matveev: (diff) | |
download | wireguard-openbsd-db74fa37f028d27d3aee926ca4e86d0f5a9c0db2.tar.xz wireguard-openbsd-db74fa37f028d27d3aee926ca4e86d0f5a9c0db2.zip |
Fix a coredump occurring when the terminal is resized while mg is
suspended. Problem reported and fixed tested by reyk@; tweak by
kjell@; ok kjell@
Diffstat (limited to 'usr.bin/mg/tty.c')
-rw-r--r-- | usr.bin/mg/tty.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mg/tty.c b/usr.bin/mg/tty.c index 8409e4418bb..7ece27a42da 100644 --- a/usr.bin/mg/tty.c +++ b/usr.bin/mg/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.25 2005/12/13 19:01:32 kjell Exp $ */ +/* $OpenBSD: tty.c,v 1.26 2006/02/25 14:40:16 otto Exp $ */ /* This file is in the public domain. */ @@ -69,6 +69,7 @@ ttinit(void) } signal(SIGWINCH, winchhandler); + signal(SIGCONT, winchhandler); siginterrupt(SIGWINCH, 1); scroll_fwd = scroll_forward; |