mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 08:15:40 +02:00
modules: add SOCK_CLOEXEC to all socket() calls
This commit is contained in:
parent
3ff1c95208
commit
4bb81e8940
4 changed files with 5 additions and 5 deletions
|
@ -267,7 +267,7 @@ run(struct module *mod)
|
|||
if (!i3_get_socket_address(&addr))
|
||||
return 1;
|
||||
|
||||
int sock = socket(AF_UNIX, SOCK_STREAM, 0);
|
||||
int sock = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0);
|
||||
if (sock == -1) {
|
||||
LOG_ERRNO("failed to create UNIX socket");
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue