win32 tweaks

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2767 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2006-09-20 20:47:28 +00:00
1 parent c3757293f0
commit 73b5fcf641
3 files changed
+16 -4

No files matched your search

+6 -1
View File
@@ -3511,12 +3511,17 @@ SWITCH_DECLARE(int32_t) set_high_priority(void)
return 0;
}
SWITCH_DECLARE(void) switch_core_runtime_loop(int bg)
{
#ifdef WIN32
HANDLE shutdown_event;
char path[256] = "";
#endif
if (bg) {
bg = 0;
#ifdef WIN32
snprintf(path, sizeof(path), "Global\\Freeswitch.%d", getpid());
shutdown_event = CreateEvent(NULL, FALSE, FALSE, path);
WaitForSingleObject(shutdown_event, INFINITE);
#else
runtime.running = 1;