properly exit sway

- wlc_terminate() instead of exit(0)
- unlink IPC socket
This commit is contained in:
minus 2015-08-19 01:52:46 +02:00
parent bfbadadf70
commit 91c0877264
4 changed files with 22 additions and 10 deletions

View file

@ -100,13 +100,15 @@ int main(int argc, char **argv) {
free(config_path);
}
init_ipc();
ipc_init();
wlc_run();
if (devnull) {
fclose(devnull);
}
ipc_shutdown();
return 0;
}