diff options
author | minus <minus@mnus.de> | 2015-08-19 01:52:46 +0200 |
---|---|---|
committer | minus <minus@mnus.de> | 2015-08-20 15:24:33 +0200 |
commit | 91c08772645e2162015c3acf8a8ae7187502adb4 (patch) | |
tree | 542f9f0371f408fc72fbb4715ea0766770ab3fad /sway/main.c | |
parent | bfbadadf702c6c7f078cc2e854afa02686b91c22 (diff) |
properly exit sway
- wlc_terminate() instead of exit(0)
- unlink IPC socket
Diffstat (limited to 'sway/main.c')
-rw-r--r-- | sway/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/main.c b/sway/main.c index 1af1278d..a42fbcb7 100644 --- a/sway/main.c +++ b/sway/main.c @@ -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; } |