diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-03-22 14:05:37 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-03-22 14:07:53 +0100 |
commit | 5cad4c70e34322aaf07202c94fbc36839f638016 (patch) | |
tree | 2c0d88b24bb5d0fbc510878247d0aff276b6cece | |
parent | errno-to-awk: simplify expression (diff) | |
download | systemd-5cad4c70e34322aaf07202c94fbc36839f638016.tar.xz systemd-5cad4c70e34322aaf07202c94fbc36839f638016.zip |
homework: s/EWOULDBLOCK/EAGAIN/
C.f. 012d7b4217420163db5752a63da6cab39d25edf3, ff55c3c7327e6ad8ab139aef52d498386d4f4a72,
ca2031fcc863fcdd4dd1594709918cb60cfd0e1b.
-rw-r--r-- | src/home/homework-luks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/home/homework-luks.c b/src/home/homework-luks.c index 8b3341c643..488cb30fe3 100644 --- a/src/home/homework-luks.c +++ b/src/home/homework-luks.c @@ -1163,12 +1163,12 @@ static int lock_image_fd(int image_fd, const char *ip) { if (flock(image_fd, LOCK_EX|LOCK_NB) < 0) { - if (errno == EWOULDBLOCK) + if (errno == EAGAIN) log_error_errno(errno, "Image file '%s' already locked, can't use.", ip); else log_error_errno(errno, "Failed to lock image file '%s': %m", ip); - return errno != EWOULDBLOCK ? -errno : -EADDRINUSE; /* Make error recognizable */ + return errno != EAGAIN ? -errno : -EADDRINUSE; /* Make error recognizable */ } log_info("Successfully locked image file '%s'.", ip); |