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);\r
- if (!shutdown_event) {\r
- /* we can't get the event, so we can't signal the process to shutdown */\r
+ 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 {\r
- SetEvent(shutdown_event);\r
- }\r
- CloseHandle(shutdown_event);\r
+ } else {
+ SetEvent(shutdown_event);
+ }
+ CloseHandle(shutdown_event);
#else
kill(pid, SIGTERM);
#endif