1
diff -ruN newt-0.51.6-old/whiptail.c newt-0.51.6/whiptail.c
2
--- newt-0.51.6-old/whiptail.c 2004-03-01 14:32:21.000000000 +0000
3
+++ newt-0.51.6/whiptail.c 2004-03-01 14:40:03.000000000 +0000
16
+static void handleSighup(int signum) {
20
/* FIXME Copied from newt.c
21
* Place somewhere better -- dialogboxes? -- amck
31
+ struct sigaction sa;
36
if (open("/dev/tty", O_RDWR) != 0) perror("open /dev/tty");
39
+ memset(&sa, 0, sizeof(sa));
40
+ sa.sa_handler = handleSighup;
41
+ sigaction(SIGWINCH, &sa, NULL);