sd-event: fix error handling

Noticed by @keszybz, see #18973
This commit is contained in:
Lennart Poettering
2021-03-12 17:56:56 +01:00
parent c14e57ba6b
commit 7cb45dbfa3
+1 -1
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. */