]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 4d07843c1614b7cd5dadf9b517391bf7b7335f16..e290e36e726b99bbfa81968263eefa38ff0b076e 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);
        }