[Freeswitch-svn] [commit] r12607 - freeswitch/trunk/src
FreeSWITCH SVN
anthm at freeswitch.org
Sat Mar 14 18:21:34 PDT 2009
Author: anthm
Date: Sat Mar 14 20:21:34 2009
New Revision: 12607
Log:
move stop up a bit
Modified:
freeswitch/trunk/src/switch.c
Modified: freeswitch/trunk/src/switch.c
==============================================================================
--- freeswitch/trunk/src/switch.c (original)
+++ freeswitch/trunk/src/switch.c Sat Mar 14 20:21:34 2009
@@ -270,7 +270,6 @@
int nc = 0; /* TRUE if we are running in noconsole mode */
pid_t pid = 0;
int x;
- int die = 0;
char *usageDesc;
int alt_dirs = 0;
int known_opt;
@@ -470,8 +469,7 @@
}
if (argv[x] && !strcmp(argv[x], "-stop")) {
- die++;
- known_opt++;
+ return freeswitch_kill_background();
}
if (argv[x] && !strcmp(argv[x], "-nc")) {
@@ -594,10 +592,6 @@
return 255;
}
- if (die) {
- return freeswitch_kill_background();
- }
-
if (alt_dirs && alt_dirs != 3) {
fprintf(stderr, "You must specify all or none of -conf, -log, and -db\n");
return 255;
More information about the Freeswitch-svn
mailing list