]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7645: Allow Ctrl+C (SIGINT) when running in foreground without console (-nf -nc)
authorJames Le Cuirot <james.le-cuirot@yakara.com>
Fri, 12 Jun 2015 12:32:12 +0000 (13:32 +0100)
committerJames Le Cuirot <james.le-cuirot@yakara.com>
Fri, 12 Jun 2015 12:32:12 +0000 (13:32 +0100)
src/switch.c

index 5f0c9d82b3089a5004399c72487ece346bee2d41..3cdda87f09c70ed5876a3a99c162fdc88ffa038e 100644 (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();