handle SIGHUP too
authorDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 30 Sep 2008 03:34:00 +0000 (04:34 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 30 Sep 2008 03:34:00 +0000 (04:34 +0100)
mainloop.c

index adbf683..5267cb6 100644 (file)
@@ -78,6 +78,8 @@ int vpn_mainloop(struct anyconnect_info *vpninfo)
        sa.sa_handler = handle_sigint;
        
        sigaction(SIGINT, &sa, NULL);
+       sigaction(SIGHUP, &sa, NULL);
+
        while (!killed && !vpninfo->quit_reason) {
                int did_work = 0;
                int timeout = INT_MAX;