From 69ac02bb39c9f31ca5380c34a1671b0d9b37de7e Mon Sep 17 00:00:00 2001 From: James Le Cuirot <james.le-cuirot@yakara.com> Date: Fri, 12 Jun 2015 13:32:12 +0100 Subject: [PATCH] FS-7645: Allow Ctrl+C (SIGINT) when running in foreground without console (-nf -nc) --- src/switch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/switch.c b/src/switch.c index 5f0c9d82b3..3cdda87f09 100644 --- a/src/switch.c +++ b/src/switch.c @@ -1196,6 +1196,10 @@ int main(int argc, char *argv[]) } #endif + if (nc && nf) { + signal(SIGINT, handle_SIGILL); + } + switch_core_runtime_loop(nc); destroy_status = switch_core_destroy();