#include <sys/syscall.h>
#include <sys/un.h>
+#include "af_unix.h"
#include "config.h"
#include "log.h"
#include "macro.h"
#include "memory_utils.h"
-#include "raw_syscalls.h"
+#include "process_utils.h"
#include "utils.h"
#ifndef HAVE_STRLCPY
msg.msg_iovlen = iovlen;
do {
- ret = recvmsg(fd, &msg, 0);
+ ret = recvmsg(fd, &msg, MSG_CMSG_CLOEXEC);
} while (ret < 0 && errno == EINTR);
if (ret < 0 || ret == 0)
return ret;
return move_fd(fd);
}
-int lxc_unix_connect(struct sockaddr_un *addr, int type)
+int lxc_unix_connect(struct sockaddr_un *addr)
{
return lxc_unix_connect_type(addr, SOCK_STREAM);
}