From: Michael Jerris Date: Sat, 19 Aug 2006 19:00:35 +0000 (+0000) Subject: windows line endings. X-Git-Tag: v1.0-beta1~2355 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=580c97e02abe26507f122b0b1ca370732b5dbf29;p=thirdparty%2Ffreeswitch.git windows line endings. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2337 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch.c b/src/switch.c index 985535cd8e..3966f5f9ee 100644 --- a/src/switch.c +++ b/src/switch.c @@ -96,14 +96,14 @@ static int freeswitch_kill_background() 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