Skip to content

Commit

Permalink
netlink: improved event handling
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmm committed Sep 10, 2024
1 parent bf8a601 commit b3071e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Netlink::~Netlink() {
}

void Netlink::connect() {
nl_socket = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_CONNECTOR);
nl_socket = socket(PF_NETLINK, SOCK_DGRAM | SOCK_NONBLOCK | SOCK_CLOEXEC, NETLINK_CONNECTOR);

if (nl_socket == -1) {
listen = false;
Expand Down

0 comments on commit b3071e0

Please sign in to comment.