0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Flock: one more cloexec

This commit is contained in:
Maria Matejka 2024-10-02 15:08:53 +02:00
parent ddbfc5557b
commit fb10346860

View File

@ -324,7 +324,7 @@ container_mainloop(int fd)
MKDIR("/var/log");
int wfd = SYSCALL(open, "/var/log/syslog", O_WRONLY | O_CREAT, 0640);
int fd = SYSCALL(socket, AF_UNIX, SOCK_DGRAM, 0);
int fd = SYSCALL(socket, AF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC, 0);
union {
struct sockaddr sa;
struct sockaddr_un un;