mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-03-22 06:17:04 +00:00
Flock: one more cloexec
This commit is contained in:
parent
ddbfc5557b
commit
fb10346860
@ -324,7 +324,7 @@ container_mainloop(int fd)
|
|||||||
MKDIR("/var/log");
|
MKDIR("/var/log");
|
||||||
int wfd = SYSCALL(open, "/var/log/syslog", O_WRONLY | O_CREAT, 0640);
|
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 {
|
union {
|
||||||
struct sockaddr sa;
|
struct sockaddr sa;
|
||||||
struct sockaddr_un un;
|
struct sockaddr_un un;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user