From: Tobias Brunner Date: Wed, 28 Sep 2011 11:50:15 +0000 (+0200) Subject: pluto: Handle SIGINT to terminate properly when run with --nofork in a console. X-Git-Tag: 4.6.0~333 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=21ee300d5cf5ff8d3b47dae8e36881f745286990;p=thirdparty%2Fstrongswan.git pluto: Handle SIGINT to terminate properly when run with --nofork in a console. --- diff --git a/src/pluto/server.c b/src/pluto/server.c index 4d07843c16..e290e36e72 100644 --- a/src/pluto/server.c +++ b/src/pluto/server.c @@ -787,6 +787,7 @@ call_server(void) act.sa_handler = &termhandler; r = sigaction(SIGTERM, &act, NULL); + r = sigaction(SIGINT, &act, NULL); passert(r == 0); }