gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 277/335: More workarounds for Linux kernel


From: gnunet
Subject: [libmicrohttpd] 277/335: More workarounds for Linux kernel
Date: Sat, 27 Jul 2024 22:02:53 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to tag stf-m2
in repository libmicrohttpd.

commit d2fa64103144f9db059b1c2b92c94cea4ad17c28
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Jul 22 15:55:25 2024 +0200

    More workarounds for Linux kernel
---
 src/mhd2/events_process.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/mhd2/events_process.c b/src/mhd2/events_process.c
index 284e68e0..99f3276c 100644
--- a/src/mhd2/events_process.c
+++ b/src/mhd2/events_process.c
@@ -366,7 +366,7 @@ poll_update_statuses_from_fds (struct MHD_Daemon *restrict 
d,
        application will not be able to stop the thread. */
     return false;
   }
-  if (0 != (d->events.data.poll.fds[i_s].revents & MHD_POLL_IN))
+  if (0 != (d->events.data.poll.fds[i_s].revents & (MHD_POLL_IN | POLLIN)))
   {
     --num_events;
     /* Clear ITC here, as before any other data processing.
@@ -401,7 +401,8 @@ poll_update_statuses_from_fds (struct MHD_Daemon *restrict 
d,
       /* Stop monitoring socket to avoid spinning with busy-waiting */
       d->net.listen.fd = MHD_INVALID_SOCKET;
     }
-    else if (0 != (d->events.data.poll.fds[i_s].revents & MHD_POLL_IN))
+    else if (0 !=
+             (d->events.data.poll.fds[i_s].revents & (MHD_POLL_IN | POLLIN)))
     {
       --num_events;
       d->events.act_req.accept = true;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]