summaryrefslogtreecommitdiff
path: root/libudev/libudev-ctrl.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-04-15 01:14:10 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-04-15 01:14:10 +0200
commitfdf52f5e2a6c67bf5a709845b2b10621083f849a (patch)
tree55088d283e187bd0f75f79565ba778a3c21edd13 /libudev/libudev-ctrl.c
parent135f3e8d0b4b4968908421b677c9ef2ba860b71d (diff)
libudev: ctrl, monitor - use SOCK_NONBLOCK
Diffstat (limited to 'libudev/libudev-ctrl.c')
-rw-r--r--libudev/libudev-ctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libudev/libudev-ctrl.c b/libudev/libudev-ctrl.c
index 7fa2d1d535..a2133fff1c 100644
--- a/libudev/libudev-ctrl.c
+++ b/libudev/libudev-ctrl.c
@@ -91,7 +91,7 @@ struct udev_ctrl *udev_ctrl_new_from_socket_fd(struct udev *udev, const char *so
return NULL;
if (fd < 0) {
- uctrl->sock = socket(AF_LOCAL, SOCK_SEQPACKET|SOCK_CLOEXEC, 0);
+ uctrl->sock = socket(AF_LOCAL, SOCK_SEQPACKET|SOCK_NONBLOCK|SOCK_CLOEXEC, 0);
if (uctrl->sock < 0) {
err(udev, "error getting socket: %m\n");
udev_ctrl_unref(uctrl);