whoops.. cr/lf -> lf
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4005 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
16fce97f7a
commit
9e2ec3532c
20
src/switch.c
20
src/switch.c
|
@ -195,10 +195,10 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
char pid_path[256] = ""; // full path to the pid file
|
char pid_path[256] = ""; // full path to the pid file
|
||||||
const char *err = NULL; // error value for return from freeswitch initialization
|
const char *err = NULL; // error value for return from freeswitch initialization
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
int nf = 0; // TRUE if we are running in nofork mode
|
int nf = 0; // TRUE if we are running in nofork mode
|
||||||
#endif
|
#endif
|
||||||
int nc = 0; // TRUE if we are running in noconsole mode
|
int nc = 0; // TRUE if we are running in noconsole mode
|
||||||
int vg = 0; // TRUE if we are running in vg mode
|
int vg = 0; // TRUE if we are running in vg mode
|
||||||
FILE *f; // file handle to the pid file
|
FILE *f; // file handle to the pid file
|
||||||
pid_t pid = 0; //
|
pid_t pid = 0; //
|
||||||
|
@ -259,9 +259,9 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
||||||
if (argv[x] && !strcmp(argv[x], "-nf")) {
|
if (argv[x] && !strcmp(argv[x], "-nf")) {
|
||||||
nf++;
|
nf++;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (argv[x] && !strcmp(argv[x], "-hp")) {
|
if (argv[x] && !strcmp(argv[x], "-hp")) {
|
||||||
|
@ -273,8 +273,8 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argv[x] && !strcmp(argv[x], "-nc")) {
|
if (argv[x] && !strcmp(argv[x], "-nc")) {
|
||||||
nc++;
|
nc++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argv[x] && !strcmp(argv[x], "-vg")) {
|
if (argv[x] && !strcmp(argv[x], "-vg")) {
|
||||||
vg++;
|
vg++;
|
||||||
|
@ -293,7 +293,7 @@ int main(int argc, char *argv[])
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
FreeConsole();
|
FreeConsole();
|
||||||
#else
|
#else
|
||||||
if (!nf && (pid = fork())) {
|
if (!nf && (pid = fork())) {
|
||||||
fprintf(stderr, "%d Backgrounding.\n", (int)pid);
|
fprintf(stderr, "%d Backgrounding.\n", (int)pid);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue