assert(m);
- /* First, subscibe to interfaces coming and going */
+ /* First, subscribe to interfaces coming and going */
r = sd_rtnl_open(&m->rtnl, 3, RTNLGRP_LINK, RTNLGRP_IPV4_IFADDR, RTNLGRP_IPV6_IFADDR);
if (r < 0)
return r;
mh.msg_control = &control;
mh.msg_controllen = sizeof(control);
- l = recvmsg(fd, &mh, 0);
+ l = recvmsg(fd, &mh, MSG_CMSG_CLOEXEC);
if (l < 0) {
if (errno == EAGAIN || errno == EINTR)
return 0;