summaryrefslogtreecommitdiff
path: root/libudev
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-05-23 22:37:02 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-05-23 22:37:02 +0200
commit13d83b88b600c24ada4ec78232f508ce7f8f3ca5 (patch)
treea220939d9d08ea760b9ac32d43cbfbe07b8fc04f /libudev
parentbda2674f22b58bd32802b2057a05efada6155bae (diff)
libudev: monitor - use SOCK_NONBLOCK
Diffstat (limited to 'libudev')
-rw-r--r--libudev/libudev-monitor.c2
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);