]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
remove SIGWINCH handler from whiptail
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 20 Mar 2008 18:33:28 +0000 (19:33 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 21 Mar 2008 11:58:40 +0000 (12:58 +0100)
whiptail.c

index ec04d02a44afaedaf35fc2b47dd33bd33dafad47..dbf2588c323f3d61b54fc72cf6e31da7e999c7cb 100644 (file)
@@ -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();