Skip to content

Commit

Permalink
Merge pull request kevinmehall#16 from cr8t/fixup/monitor
Browse files Browse the repository at this point in the history
fixup: use proper `nl_groups` for `Monitor::snl`
  • Loading branch information
cr8t authored Apr 4, 2024
2 parents 9102890 + 218ed7f commit c18e1c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl UdevMonitor {
Ok(Self {
udev,
sock: 0,
snl: UdevSocket::new_nl(libc::AF_NETLINK, 0, 0),
snl: UdevSocket::new_nl(libc::AF_NETLINK, 0, 2),
snl_group: UdevMonitorNetlinkGroup::None,
snl_trusted_sender: UdevSocket::new_nl(libc::AF_NETLINK, 0, 0),
snl_destination: UdevSocket::new_nl(libc::AF_NETLINK, 0, 0),
Expand Down

0 comments on commit c18e1c7

Please sign in to comment.