pluto: Handle SIGINT to terminate properly when run with --nofork in a console.
authorTobias Brunner <tobias@strongswan.org>
Wed, 28 Sep 2011 11:50:15 +0000 (13:50 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 28 Sep 2011 11:57:59 +0000 (13:57 +0200)
src/pluto/server.c

index 4d07843..e290e36 100644 (file)
@@ -787,6 +787,7 @@ call_server(void)
 
                act.sa_handler = &termhandler;
                r = sigaction(SIGTERM, &act, NULL);
+               r = sigaction(SIGINT, &act, NULL);
                passert(r == 0);
        }