From: Miroslav Lichvar Date: Thu, 20 Mar 2008 18:33:28 +0000 (+0100) Subject: remove SIGWINCH handler from whiptail X-Git-Tag: r0-52-9~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f6a2859680f40de85867eab0151795f98691293;p=thirdparty%2Fnewt.git remove SIGWINCH handler from whiptail --- 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();