git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3388 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2006-11-16 19:43:25 +00:00
parent ff4d2b3dcc
commit 89989bc34f
3 changed files with 15 additions and 5 deletions

View File

@@ -195,6 +195,7 @@ int main(int argc, char *argv[])
char pid_path[256] = ""; // full path to the pid file
const char *err = NULL; // error value for return from freeswitch initialization
int bg = 0; // TRUE if we are running in background mode
int vg = 0; // TRUE if we are running in vg mode
FILE *f; // file handle to the pid file
pid_t pid = 0; //
int x; //
@@ -265,6 +266,10 @@ int main(int argc, char *argv[])
if (argv[x] && !strcmp(argv[x], "-nc")) {
bg++;
}
if (argv[x] && !strcmp(argv[x], "-vg")) {
vg++;
}
}
if (die) {
@@ -302,5 +307,5 @@ int main(int argc, char *argv[])
switch_core_runtime_loop(bg);
return switch_core_destroy();
return switch_core_destroy(vg);
}