windows line endings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2337 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
c15da98579
commit
580c97e02a
14
src/switch.c
14
src/switch.c
|
@ -96,14 +96,14 @@ static int freeswitch_kill_background()
|
||||||
fprintf(stderr, "Killing: %d\n", (int) pid);
|
fprintf(stderr, "Killing: %d\n", (int) pid);
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
snprintf(path, sizeof(path), "Global\\Freeswitch.%d", pid);
|
snprintf(path, sizeof(path), "Global\\Freeswitch.%d", pid);
|
||||||
shutdown_event = OpenEvent(EVENT_MODIFY_STATE, FALSE, path);
|
shutdown_event = OpenEvent(EVENT_MODIFY_STATE, FALSE, path);
|
||||||
if (!shutdown_event) {
|
if (!shutdown_event) {
|
||||||
/* we can't get the event, so we can't signal the process to shutdown */
|
/* 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);
|
fprintf(stderr, "ERROR: Can't Shutdown: %d\n", (int) pid);
|
||||||
} else {
|
} else {
|
||||||
SetEvent(shutdown_event);
|
SetEvent(shutdown_event);
|
||||||
}
|
}
|
||||||
CloseHandle(shutdown_event);
|
CloseHandle(shutdown_event);
|
||||||
#else
|
#else
|
||||||
kill(pid, SIGTERM);
|
kill(pid, SIGTERM);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue