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:
Michael Jerris 2007-01-19 22:47:23 +00:00
parent 16fce97f7a
commit 9e2ec3532c
1 changed files with 10 additions and 10 deletions

View File

@ -195,10 +195,10 @@ 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
#ifndef WIN32
int nf = 0; // TRUE if we are running in nofork mode
#endif
int nc = 0; // TRUE if we are running in noconsole mode
#ifndef WIN32
int nf = 0; // TRUE if we are running in nofork mode
#endif
int nc = 0; // TRUE if we are running in noconsole mode
int vg = 0; // TRUE if we are running in vg mode
FILE *f; // file handle to the pid file
pid_t pid = 0; //
@ -259,9 +259,9 @@ int main(int argc, char *argv[])
}
}
#else
if (argv[x] && !strcmp(argv[x], "-nf")) {
nf++;
if (argv[x] && !strcmp(argv[x], "-nf")) {
nf++;
}
#endif
if (argv[x] && !strcmp(argv[x], "-hp")) {
@ -273,8 +273,8 @@ int main(int argc, char *argv[])
}
if (argv[x] && !strcmp(argv[x], "-nc")) {
nc++;
}
nc++;
}
if (argv[x] && !strcmp(argv[x], "-vg")) {
vg++;
@ -293,7 +293,7 @@ int main(int argc, char *argv[])
#ifdef WIN32
FreeConsole();
#else
if (!nf && (pid = fork())) {
if (!nf && (pid = fork())) {
fprintf(stderr, "%d Backgrounding.\n", (int)pid);
exit(0);
}