[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.
- [libmicrohttpd] 256/335: minimal_example2: saved two extra calls of MHD_daemon_destroy(), (continued)
- [libmicrohttpd] 256/335: minimal_example2: saved two extra calls of MHD_daemon_destroy(), gnunet, 2024/07/27
- [libmicrohttpd] 274/335: daemon_start.c: make sure that sys symbols defined, gnunet, 2024/07/27
- [libmicrohttpd] 276/335: Workaround for Linux kernel bug, gnunet, 2024/07/27
- [libmicrohttpd] 267/335: epoll and other fixes, gnunet, 2024/07/27
- [libmicrohttpd] 249/335: fix FTBFS issues, gnunet, 2024/07/27
- [libmicrohttpd] 270/335: -fix test setup logic, gnunet, 2024/07/27
- [libmicrohttpd] 258/335: fix copy and paste bug, gnunet, 2024/07/27
- [libmicrohttpd] 271/335: Make sure that connection is closed if disconnected remotely, gnunet, 2024/07/27
- [libmicrohttpd] 265/335: add test with chunked upload, gnunet, 2024/07/27
- [libmicrohttpd] 272/335: Fixes, gnunet, 2024/07/27
- [libmicrohttpd] 277/335: More workarounds for Linux kernel,
gnunet <=
- [libmicrohttpd] 268/335: Proper conn cleanup on daemon close, no wait if something is already ready, gnunet, 2024/07/27
- [libmicrohttpd] 259/335: Fixed shutdown of the daemon, gnunet, 2024/07/27
- [libmicrohttpd] 281/335: Moved client-server tests to dedicated dir, gnunet, 2024/07/27
- [libmicrohttpd] 279/335: Fixed assert, gnunet, 2024/07/27
- [libmicrohttpd] 283/335: More missing parts for moved test, gnunet, 2024/07/27
- [libmicrohttpd] 287/335: Temporal workaround to avoid settings regeneration, gnunet, 2024/07/27
- [libmicrohttpd] 273/335: minimal_example2: flush output, gnunet, 2024/07/27
- [libmicrohttpd] 284/335: test_client_server: use proper macros, gnunet, 2024/07/27
- [libmicrohttpd] 275/335: .gitignore: updated, gnunet, 2024/07/27
- [libmicrohttpd] 289/335: libtest_convenience: Fixed NULL dereference in tests, gnunet, 2024/07/27