From 2ad0be3590c8ac380c2b0e87f28653b994916c65 Mon Sep 17 00:00:00 2001
From: compile_success <980965867@qq.com>
Date: Thu, 18 Jul 2024 13:40:15 +0000
Subject: [PATCH] add sem post when update event

---
 src/lstack/api/lstack_epoll.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lstack/api/lstack_epoll.c b/src/lstack/api/lstack_epoll.c
index e92faac..417499b 100644
--- a/src/lstack/api/lstack_epoll.c
+++ b/src/lstack/api/lstack_epoll.c
@@ -229,6 +229,7 @@ static void raise_pending_events(struct wakeup_poll *wakeup, struct lwip_sock *s
         if (wakeup->type == WAKEUP_EPOLL && (sock->events & sock->epoll_events) &&
             list_node_null(&sock->event_list)) {
             list_add_node(&sock->event_list, &wakeup->event_list);
+	    sem_post(&wakeup->wait);
         }
     }
     pthread_spin_unlock(&wakeup->event_list_lock);
-- 
2.33.0

