udev: dont use EWOULDBLOCK
EWOULDBLOCK is the same as EAGAIN, stop using it.
This commit is contained in:
parent
d736e4f3e7
commit
ca2031fcc8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue