Author: mikej Date: Sat Aug 19 15:00:35 2006 New Revision: 2337 Modified: freeswitch/trunk/src/switch.c Log: windows line endings. Modified: freeswitch/trunk/src/switch.c ============================================================================== --- freeswitch/trunk/src/switch.c (original) +++ freeswitch/trunk/src/switch.c Sat Aug 19 15:00:35 2006 @@ -96,14 +96,14 @@ fprintf(stderr, "Killing: %d\n", (int) pid); #ifdef WIN32 snprintf(path, sizeof(path), "Global\\Freeswitch.%d", pid); - shutdown_event = OpenEvent(EVENT_MODIFY_STATE, FALSE, path); - if (!shutdown_event) { - /* we can't get the event, so we can't signal the process to shutdown */ + shutdown_event = OpenEvent(EVENT_MODIFY_STATE, FALSE, path); + if (!shutdown_event) { + /* we can't get the event, so we can't signal the process to shutdown */ fprintf(stderr, "ERROR: Can't Shutdown: %d\n", (int) pid); - } else { - SetEvent(shutdown_event); - } - CloseHandle(shutdown_event); + } else { + SetEvent(shutdown_event); + } + CloseHandle(shutdown_event); #else kill(pid, SIGTERM); #endif
participants (1)
-
Freeswitch SVN