diff --git a/lit/wmaffle.lit b/lit/wmaffle.lit index e1f88d8..6979557 100644 --- a/lit/wmaffle.lit +++ b/lit/wmaffle.lit @@ -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.