[Freeswitch-svn] [commit] r4017 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Mon Jan 22 12:45:10 EST 2007


Author: mikej
Date: Mon Jan 22 12:45:09 2007
New Revision: 4017

Modified:
   freeswitch/trunk/src/switch.c

Log:
tweak to work around shutdown segfault in windows in background mode.  This forces it to not do apr_terminate, which shouldn't be necessary anyways as the entire process in ending.

Modified: freeswitch/trunk/src/switch.c
==============================================================================
--- freeswitch/trunk/src/switch.c	(original)
+++ freeswitch/trunk/src/switch.c	Mon Jan 22 12:45:09 2007
@@ -197,9 +197,11 @@
 	const char *err = NULL;		// error value for return from freeswitch initialization
 #ifndef WIN32
 	int nf = 0;					// TRUE if we are running in nofork mode
+	int vg = 1;					// Allways TRUE on windows to not do apr_terminate
+#else
+	int vg = 0;					// TRUE if we are running in vg 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;				// 
 	int x;						//



More information about the Freeswitch-svn mailing list