added sway_terminate to exit cleanly

This commit is contained in:
minus 2015-08-20 15:12:34 +02:00
parent 70f046c87a
commit f26ed32e46
5 changed files with 19 additions and 6 deletions

View file

@ -60,7 +60,7 @@ void ipc_init(void) {
ipc_event_source = wlc_event_loop_add_fd(ipc_socket, WLC_EVENT_READABLE, ipc_handle_connection, NULL);
}
void ipc_shutdown(void) {
void ipc_terminate(void) {
if (ipc_event_source) {
wlc_event_source_remove(ipc_event_source);
}