[Freeswitch-svn] [commit] r4005 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Fri Jan 19 17:47:23 EST 2007
Author: mikej
Date: Fri Jan 19 17:47:23 2007
New Revision: 4005
Modified:
freeswitch/trunk/src/switch.c
Log:
whoops.. cr/lf -> lf
Modified: freeswitch/trunk/src/switch.c
==============================================================================
--- freeswitch/trunk/src/switch.c (original)
+++ freeswitch/trunk/src/switch.c Fri Jan 19 17:47:23 2007
@@ -195,10 +195,10 @@
{
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 @@
}
}
#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 @@
}
if (argv[x] && !strcmp(argv[x], "-nc")) {
- nc++;
- }
+ nc++;
+ }
if (argv[x] && !strcmp(argv[x], "-vg")) {
vg++;
@@ -293,7 +293,7 @@
#ifdef WIN32
FreeConsole();
#else
- if (!nf && (pid = fork())) {
+ if (!nf && (pid = fork())) {
fprintf(stderr, "%d Backgrounding.\n", (int)pid);
exit(0);
}
More information about the Freeswitch-svn
mailing list