Close socket

This commit is contained in:
buffet 2018-09-30 20:09:39 +02:00
parent 972d001fd6
commit 70d42cc864

View file

@ -32,6 +32,8 @@ main(int argc, char *argv[])
@{setup signal handlers}
@{execute config}
@{cleanup}
}
---
@ -219,6 +221,14 @@ if (sock_path) {
}
---
@s Close socket
Important part of our tear down process: closing the IPC socket again. Let's do it.
--- cleanup
close(sock_fd);
---
@s Setup signal handlers
We don't want out window manager to just exit on us, so we need to setup signal handler.