FS-7645: Allow Ctrl+C (SIGINT) when running in foreground without console (-nf -nc)

This commit is contained in:
James Le Cuirot 2015-06-12 13:32:12 +01:00
parent 8e058adecd
commit 69ac02bb39
1 changed files with 4 additions and 0 deletions

View File

@ -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();