diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-05-23 22:37:02 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-05-23 22:37:02 +0200 |
commit | 13d83b88b600c24ada4ec78232f508ce7f8f3ca5 (patch) | |
tree | a220939d9d08ea760b9ac32d43cbfbe07b8fc04f | |
parent | bda2674f22b58bd32802b2057a05efada6155bae (diff) |
libudev: monitor - use SOCK_NONBLOCK
-rw-r--r-- | libudev/libudev-monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libudev/libudev-monitor.c b/libudev/libudev-monitor.c index ec76698836..85ab23bdd4 100644 --- a/libudev/libudev-monitor.c +++ b/libudev/libudev-monitor.c @@ -178,7 +178,7 @@ struct udev_monitor *udev_monitor_new_from_netlink_fd(struct udev *udev, const c return NULL; if (fd < 0) { - udev_monitor->sock = socket(PF_NETLINK, SOCK_RAW|SOCK_CLOEXEC, NETLINK_KOBJECT_UEVENT); + udev_monitor->sock = socket(PF_NETLINK, SOCK_RAW|SOCK_CLOEXEC|SOCK_NONBLOCK, NETLINK_KOBJECT_UEVENT); if (udev_monitor->sock == -1) { err(udev, "error getting socket: %m\n"); free(udev_monitor); |