From 9f6a2859680f40de85867eab0151795f98691293 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 20 Mar 2008 19:33:28 +0100 Subject: [PATCH] remove SIGWINCH handler from whiptail --- whiptail.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/whiptail.c b/whiptail.c index ec04d02..dbf2588 100644 --- a/whiptail.c +++ b/whiptail.c @@ -70,10 +70,6 @@ static void print_version(void) { fprintf (stdout, _("whiptail (newt): %s\n"), VERSION); } -static void handleSighup(int signum) { - exit(DLG_ERROR); -} - #if 0 /* FIXME Copied from newt.c * Place somewhere better -- dialogboxes? -- amck @@ -328,7 +324,6 @@ int main(int argc, const char ** argv) { char * text; const char * nextArg; char * end; - struct sigaction sa; int height; int width; int fd = -1; @@ -502,10 +497,6 @@ int main(int argc, const char ** argv) { if (open("/dev/tty", O_RDWR) != 0) perror("open /dev/tty"); } - memset(&sa, 0, sizeof(sa)); - sa.sa_handler = handleSighup; - sigaction(SIGWINCH, &sa, NULL); - newtInit(); newtCls(); -- 2.47.2