pluto: Handle SIGINT to terminate properly when run with --nofork in a console.

This commit is contained in:
Tobias Brunner
2011-09-28 13:57:59 +02:00
parent 192f714076
commit 21ee300d5c
+1
View 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);
}