mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
properly exit sway
- wlc_terminate() instead of exit(0) - unlink IPC socket
This commit is contained in:
parent
bfbadadf70
commit
91c0877264
4 changed files with 22 additions and 10 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue