pluto: Handle SIGINT to terminate properly when run with --nofork in a console.
This commit is contained in:
1 parent
192f714076
commit
21ee300d5c
1 file changed
+1
@@ -787,6 +787,7 @@ call_server(void)
|
|||||||
|
|
||||||
act.sa_handler = &termhandler;
|
act.sa_handler = &termhandler;
|
||||||
r = sigaction(SIGTERM, &act, NULL);
|
r = sigaction(SIGTERM, &act, NULL);
|
||||||
|
r = sigaction(SIGINT, &act, NULL);
|
||||||
passert(r == 0);
|
passert(r == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user