From 7cb45dbfa30929a72fcfaec6e9fe368f642c9b41 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 12 Mar 2021 17:55:52 +0100 Subject: [PATCH] sd-event: fix error handling Noticed by @keszybz, see #18973 --- src/libsystemd/sd-event/sd-event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c index 8ab9d419af5..a35878cd8f4 100644 --- a/src/libsystemd/sd-event/sd-event.c +++ b/src/libsystemd/sd-event/sd-event.c @@ -3802,7 +3802,7 @@ static int epoll_wait_usec( NULL); if (r >= 0) return r; - if (!ERRNO_IS_NOT_SUPPORTED(r) && !ERRNO_IS_PRIVILEGE(r)) + if (!ERRNO_IS_NOT_SUPPORTED(errno) && !ERRNO_IS_PRIVILEGE(errno)) return -errno; /* Only fallback to old epoll_wait() if the syscall is masked or not * supported. */ -- 2.47.3