summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-12-09 17:31:56 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-12-09 17:31:56 +0000
commit80be37e380f4cb8fb997de8a77a0cf56b2c5537f (patch)
treee339fa7a5128704421cc3c2e4e0b27da61c72c16 /src
parent144f7b5bbce8affbfb374a1706a1e6e7f56b5529 (diff)
downloadmdevd-80be37e380f4cb8fb997de8a77a0cf56b2c5537f.tar.xz
Get rid of DJBUNIX_FLAG_ adhocness
Diffstat (limited to 'src')
-rw-r--r--src/mdevd/mdevd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mdevd/mdevd.c b/src/mdevd/mdevd.c
index 440073d..91de3d5 100644
--- a/src/mdevd/mdevd.c
+++ b/src/mdevd/mdevd.c
@@ -200,7 +200,7 @@ static inline ssize_t fd_recvmsg (int fd, struct msghdr *hdr)
static inline int netlink_init (unsigned int kbufsz)
{
struct sockaddr_nl nl = { .nl_family = AF_NETLINK, .nl_pad = 0, .nl_groups = 1, .nl_pid = 0 } ;
- int fd = socket_internal(AF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT, DJBUNIX_FLAG_NB|DJBUNIX_FLAG_COE) ;
+ int fd = socket_internal(AF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT, O_NONBLOCK|O_CLOEXEC) ;
if (fd < 0) return -1 ;
if (bind(fd, (struct sockaddr *)&nl, sizeof(struct sockaddr_nl)) < 0) goto err ;
if (setsockopt(fd, SOL_SOCKET, SO_RCVBUFFORCE, &kbufsz, sizeof(unsigned int)) < 0)