代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/gazelle 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From c6cca5f100c09769a5d260e729f4c149be964ea4 Mon Sep 17 00:00:00 2001
From: jiangheng <jiangheng14@huawei.com>
Date: Sat, 28 Oct 2023 20:17:26 +0800
Subject: [PATCH] epoll: fix epollet mode error
---
src/lstack/api/lstack_epoll.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/lstack/api/lstack_epoll.c b/src/lstack/api/lstack_epoll.c
index d1fb209..a711ae3 100644
--- a/src/lstack/api/lstack_epoll.c
+++ b/src/lstack/api/lstack_epoll.c
@@ -468,22 +468,22 @@ int32_t epoll_lwip_event_nolock(struct wakeup_poll *wakeup, struct epoll_event *
continue;
}
+ events[event_num].events = sock->events & sock->epoll_events;
+ events[event_num].data = sock->ep_data;
+ event_num++;
+
if (sock->epoll_events & EPOLLET) {
list_del_node_null(node);
sock->events = 0;
}
/* EPOLLONESHOT: generate event after epoll_ctl add/mod event again
- epoll_event set 0 avoid generating event util epoll_ctl set epoll_event a valu */
+ epoll_event set 0 avoid generating event util epoll_ctl reset epoll_event */
if (sock->epoll_events & EPOLLONESHOT) {
list_del_node_null(node);
sock->epoll_events = 0;
}
- events[event_num].events = sock->events & sock->epoll_events;
- events[event_num].data = sock->ep_data;
- event_num++;
-
if (event_num >= maxevents) {
/* move list head after the current node, and start traversing from this node next time */
list_del_node_null(&wakeup->event_list);
--
2.27.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。