chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67a77c8
)
libudev: ctrl - log accept4() errors
author
Kay Sievers
<kay.sievers@vrfy.org>
Thu, 5 May 2011 17:17:09 +0000
(19:17 +0200)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Thu, 5 May 2011 17:17:09 +0000
(19:17 +0200)
libudev/libudev-ctrl.c
patch
|
blob
|
history
diff --git
a/libudev/libudev-ctrl.c
b/libudev/libudev-ctrl.c
index a2133fff1c7b313b36aeeb7376c2fcf88b25a4b2..61e02433834e5a73e1d88748652230fd38925c1c 100644
(file)
--- a/
libudev/libudev-ctrl.c
+++ b/
libudev/libudev-ctrl.c
@@
-184,8
+184,10
@@
struct udev_ctrl_connection *udev_ctrl_get_connection(struct udev_ctrl *uctrl)
conn->refcount = 1;
conn->uctrl = uctrl;
- conn->sock = accept4(uctrl->sock, NULL, NULL, SOCK_CLOEXEC);
+ conn->sock = accept4(uctrl->sock, NULL, NULL, SOCK_CLOEXEC
|SOCK_NONBLOCK
);
if (conn->sock < 0) {
+ if (errno != EINTR)
+ err(uctrl->udev, "unable to receive ctrl connection: %m\n");
free(conn);
return NULL;
}