]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Flock: one more cloexec
authorMaria Matejka <mq@ucw.cz>
Wed, 2 Oct 2024 13:08:53 +0000 (15:08 +0200)
committerMaria Matejka <mq@ucw.cz>
Sun, 23 Feb 2025 18:07:35 +0000 (19:07 +0100)
flock/container.c

index f96227622d2c649e272db19ac4a9399a5732778a..47a322373aaeef94653b5698d2f3f0605cba5264 100644 (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;