From 21ee300d5cf5ff8d3b47dae8e36881f745286990 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 28 Sep 2011 13:50:15 +0200 Subject: [PATCH] pluto: Handle SIGINT to terminate properly when run with --nofork in a console. --- src/pluto/server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pluto/server.c b/src/pluto/server.c index 4d07843c1..e290e36e7 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); }