delete ipc socket when exiting, cleanup tmpdir

fixes #1253
This commit is contained in:
Michael Stapelberg
2014-06-08 22:13:43 +02:00
parent 617afc67a2
commit 26460c091a
3 changed files with 55 additions and 1 deletions

View File

@ -1649,6 +1649,8 @@ void cmd_layout_toggle(I3_CMD, char *toggle_mode) {
*/
void cmd_exit(I3_CMD) {
LOG("Exiting due to user command.\n");
ipc_shutdown();
unlink(config.ipc_socket_path);
xcb_disconnect(conn);
exit(0);