1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-19 22:50:17 +03:00

sd-event: fix error handling

Noticed by @keszybz, see #18973
This commit is contained in:
Lennart Poettering 2021-03-12 17:55:52 +01:00
parent c14e57ba6b
commit 7cb45dbfa3

View File

@ -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. */