From bb2638a514a0ec9668c5f58d4df80a3c7d74a8bd Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 25 Jan 2008 14:08:53 +0000 Subject: [PATCH] add -c command line arg to run in console mode. Should we change the default on release? git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7350 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/switch.c b/src/switch.c index 6093981acf..bac72454bd 100644 --- a/src/switch.c +++ b/src/switch.c @@ -242,6 +242,7 @@ int main(int argc, char *argv[]) "\t-nosql -- disable internal sql scoreboard\n" "\t-stop -- stop freeswitch\n" "\t-nc -- do not output to a console and background\n" + "\t-c -- output to a console and stay in the foreground\n" "\t-conf [confdir] -- specify an alternate config dir\n" "\t-log [logdir] -- specify an alternate log dir\n" "\t-db [dbdir] -- specify an alternate db dir\n" @@ -341,6 +342,10 @@ int main(int argc, char *argv[]) known_opt++; } + if (argv[x] && !strcmp(argv[x], "-c")) { + nc = 0; + known_opt++; + } if (argv[x] && !strcmp(argv[x], "-conf")) { x++;