pluto: Handle SIGINT to terminate properly when run with --nofork in a console.
This commit is contained in:
@@ -787,6 +787,7 @@ call_server(void)
|
||||
|
||||
act.sa_handler = &termhandler;
|
||||
r = sigaction(SIGTERM, &act, NULL);
|
||||
r = sigaction(SIGINT, &act, NULL);
|
||||
passert(r == 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user