From: James Le Cuirot Date: Fri, 12 Jun 2015 12:32:12 +0000 (+0100) Subject: FS-7645: Allow Ctrl+C (SIGINT) when running in foreground without console (-nf -nc) X-Git-Tag: v1.6.2~456^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69ac02bb39c9f31ca5380c34a1671b0d9b37de7e;p=thirdparty%2Ffreeswitch.git FS-7645: Allow Ctrl+C (SIGINT) when running in foreground without console (-nf -nc) --- 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();