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.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4017 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
4457fe7596
commit
ecb1e9dae0
|
@ -197,9 +197,11 @@ int main(int argc, char *argv[])
|
||||||
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
|
||||||
|
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
|
#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
|
|
||||||
FILE *f; // file handle to the pid file
|
FILE *f; // file handle to the pid file
|
||||||
pid_t pid = 0; //
|
pid_t pid = 0; //
|
||||||
int x; //
|
int x; //
|
||||||
|
|
Loading…
Reference in New Issue