nuttx/sched/signal
Ville Juven be0cb4cbe3 signal/sig_dispatch: Fix case where signal action is sent twice
As far as I can interpret how signal delivery should work when the signal
is blocked, it should still be sent to the pending queue even if the signal
is masked. When the sigmask changes it will be delivered.

The original implementation did not add the pending signal action, if
stcb->task_state == TSTATE_WAIT_SIG is true.

An attempt to patch this was made in #8563 but it is insufficient as it
creates an issue when the task is not waiting for a signal, but is in
syscall, in this case the signal is incorrectly queued twice.
2023-02-22 01:29:06 +08:00
..
Make.defs sched: Implement tkill/tgkill 2023-01-26 08:11:56 +02:00
sig_action.c signal: Support sigaction:sa_user, siginfo_t:si_user with user info 2022-12-28 23:05:58 +08:00
sig_allocpendingsigaction.c
sig_cleanup.c
sig_default.c libc/exit: Purge calls to userspace API exit() from kernel 2023-02-17 23:07:17 +08:00
sig_deliver.c signal: signal handler may cause task's state error 2022-01-05 21:36:44 +09:00
sig_dispatch.c signal/sig_dispatch: Fix case where signal action is sent twice 2023-02-22 01:29:06 +08:00
sig_findaction.c
sig_initialize.c libc: Move queue.h from include to include/nuttx 2022-09-26 08:04:58 +02:00
sig_kill.c
sig_lowest.c
sig_nanosleep.c
sig_notification.c Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
sig_pause.c
sig_pending.c signal/nxsig_pengingset: move nxsig_pendingset to common header 2022-12-28 23:05:58 +08:00
sig_ppoll.c
sig_procmask.c
sig_pselect.c
sig_queue.c
sig_releasependingsigaction.c
sig_releasependingsignal.c
sig_removependingsignal.c
sig_sleep.c
sig_suspend.c nuttx/sched: merge up_block_task and up_unblock_task 2022-11-22 22:59:08 +08:00
sig_tgkill.c sched: Implement tkill/tgkill 2023-01-26 08:11:56 +02:00
sig_timedwait.c nuttx/sched: merge up_block_task and up_unblock_task 2022-11-22 22:59:08 +08:00
sig_unmaskpendingsignal.c
sig_usleep.c
sig_waitinfo.c
signal.h signal/nxsig_pengingset: move nxsig_pendingset to common header 2022-12-28 23:05:58 +08:00