summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2015-03-13 13:41:55 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2015-03-13 14:09:55 +0100
commitca2031fcc863fcdd4dd1594709918cb60cfd0e1b (patch)
treed5f23f1395f55b762735b9b58eaf3247da084ab8
parentd736e4f3e76daca4ab1b1fc444737e5ee20a27cd (diff)
udev: dont use EWOULDBLOCK
EWOULDBLOCK is the same as EAGAIN, stop using it.
-rw-r--r--src/udev/udevd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index ac21d511bb..f7d61915fb 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -291,7 +291,7 @@ static void worker_new(struct event *event) {
fd_lock = open(udev_device_get_devnode(d), O_RDONLY|O_CLOEXEC|O_NOFOLLOW|O_NONBLOCK);
if (fd_lock >= 0 && flock(fd_lock, LOCK_SH|LOCK_NB) < 0) {
log_debug_errno(errno, "Unable to flock(%s), skipping event handling: %m", udev_device_get_devnode(d));
- err = -EWOULDBLOCK;
+ err = -EAGAIN;
fd_lock = safe_close(fd_lock);
goto skip;
}