From df3fe0e16f87736a8f4fd31909b5fe1bcf2a91e7 Mon Sep 17 00:00:00 2001 From: chengdong wang Date: Mon, 24 Nov 2025 13:21:02 +0800 Subject: [PATCH] Revert "sched/signal: Unblock task waiting for event when a signal received" Events are not defined in the POSIX standard, so signals are not required to wake tasks that are in the TSTATE_WAIT_EVENT state. Signed-off-by: Chengdong Wang wangchengdong@lixiang.com --- sched/signal/sig_dispatch.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/sched/signal/sig_dispatch.c b/sched/signal/sig_dispatch.c index 64987f3a696..e1cd559f49a 100644 --- a/sched/signal/sig_dispatch.c +++ b/sched/signal/sig_dispatch.c @@ -43,7 +43,6 @@ #include "sched/sched.h" #include "group/group.h" #include "semaphore/semaphore.h" -#include "event/event.h" #include "signal/signal.h" #include "mqueue/mqueue.h" @@ -656,17 +655,6 @@ int nxsig_tcbdispatch(FAR struct tcb_s *stcb, siginfo_t *info, nxsem_wait_irq(stcb, EINTR); } -#ifdef CONFIG_SCHED_EVENTS - /* If the task is blocked waiting for a event, then that task must - * be unblocked when a signal is received. - */ - - else if (stcb->task_state == TSTATE_WAIT_EVENT) - { - nxevent_wait_irq(stcb, EINTR); - } -#endif - #if !defined(CONFIG_DISABLE_MQUEUE) || !defined(CONFIG_DISABLE_MQUEUE_SYSV) /* If the task is blocked waiting on a message queue, then that task * must be unblocked when a signal is received.