mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
sched/signal: Add support for partially disabling signals
Signals in NuttX serve two primary purposes:
1. Synchronization and wake-up:
Signals can be used to block threads on specific signal sets and later
wake them up by delivering the corresponding signals to those threads.
2. Asynchronous notification:
Signals can also be used to install callback handlers for specific signals, allowing threads to
asynchronously invoke those handlers when the signals are delivered.
This change introduces the ability to partially disable signal functionality: to disable only signal functions for
Asynchronous notification, keeping functions for Synchronization and wake-up.
This enables finer-grained control over signal usage while preserving existing behavior for supported use cases.
Co-authored-by: Guo Shichao guoshichao@xiaomi.com
Signed-off-by: Chengdong Wang wangchengdong@lixiang.com
This commit is contained in:
committed by
Alan C. Assis
parent
ac3d964973
commit
0ea686bc5b
@@ -154,8 +154,10 @@ SYSCALL_LOOKUP(nxsem_wait_slow, 1)
|
||||
|
||||
SYSCALL_LOOKUP(kill, 2)
|
||||
SYSCALL_LOOKUP(tgkill, 3)
|
||||
#ifdef CONFIG_ENABLE_ALL_SIGNALS
|
||||
SYSCALL_LOOKUP(sigaction, 3)
|
||||
SYSCALL_LOOKUP(sigpending, 1)
|
||||
#endif
|
||||
SYSCALL_LOOKUP(sigprocmask, 3)
|
||||
SYSCALL_LOOKUP(sigqueue, 3)
|
||||
SYSCALL_LOOKUP(sigsuspend, 1)
|
||||
|
||||
Reference in New Issue
Block a user