Close socket
This commit is contained in:
parent
972d001fd6
commit
70d42cc864
1 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue