teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame 0001-sd-event-do-not-use-epoll_pwait2-tentatively.patch

Yu Watanabe 98c9d9
From 829e2b5cd552c5ea33a8ccc43e118ba87bbda206 Mon Sep 17 00:00:00 2001
Yu Watanabe 98c9d9
From: Yu Watanabe <watanabe.yu+github@gmail.com>
Yu Watanabe 98c9d9
Date: Fri, 19 Mar 2021 04:13:59 +0900
Yu Watanabe 98c9d9
Subject: [PATCH] sd-event: do not use epoll_pwait2() tentatively
Yu Watanabe 98c9d9
Yu Watanabe 98c9d9
---
Yu Watanabe 98c9d9
 src/libsystemd/sd-event/sd-event.c | 4 +++-
Yu Watanabe 98c9d9
 1 file changed, 3 insertions(+), 1 deletion(-)
Yu Watanabe 98c9d9
Yu Watanabe 98c9d9
diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c
Yu Watanabe 98c9d9
index 8f74b14101..14bed4f854 100644
Yu Watanabe 98c9d9
--- a/src/libsystemd/sd-event/sd-event.c
Yu Watanabe 98c9d9
+++ b/src/libsystemd/sd-event/sd-event.c
Yu Watanabe 98c9d9
@@ -3808,8 +3808,9 @@ static int epoll_wait_usec(
Yu Watanabe 98c9d9
                 int maxevents,
Yu Watanabe 98c9d9
                 usec_t timeout) {
Yu Watanabe 98c9d9
 
Yu Watanabe 98c9d9
-        static bool epoll_pwait2_absent = false;
Yu Watanabe 98c9d9
         int r, msec;
Yu Watanabe 98c9d9
+#if 0
Yu Watanabe 98c9d9
+        static bool epoll_pwait2_absent = false;
Yu Watanabe 98c9d9
 
Yu Watanabe 98c9d9
         /* A wrapper that uses epoll_pwait2() if available, and falls back to epoll_wait() if not */
Yu Watanabe 98c9d9
 
Yu Watanabe 98c9d9
@@ -3829,6 +3830,7 @@ static int epoll_wait_usec(
Yu Watanabe 98c9d9
 
Yu Watanabe 98c9d9
                 epoll_pwait2_absent = true;
Yu Watanabe 98c9d9
         }
Yu Watanabe 98c9d9
+#endif
Yu Watanabe 98c9d9
 
Yu Watanabe 98c9d9
         if (timeout == USEC_INFINITY)
Yu Watanabe 98c9d9
                 msec = -1;
Yu Watanabe 98c9d9
-- 
Yu Watanabe 98c9d9
2.30.2
Yu Watanabe 98c9d9