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 sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
sig_cleanup.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
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 sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
sig_initialize.c libc: Move queue.h from include to include/nuttx 2022-09-26 08:04:58 +02:00
sig_kill.c signal/sig_kill.c: remove the limitation of kill(0, xx) 2021-03-03 15:03:32 +00:00
sig_lowest.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
sig_nanosleep.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
sig_notification.c Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
sig_pause.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
sig_pending.c signal/nxsig_pengingset: move nxsig_pendingset to common header 2022-12-28 23:05:58 +08:00
sig_ppoll.c Change all files come from Xiaomi/Pinecone to Apache License 2.0 2020-08-22 17:37:21 -06:00
sig_procmask.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
sig_pselect.c Change all files come from Xiaomi/Pinecone to Apache License 2.0 2020-08-22 17:37:21 -06:00
sig_queue.c Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
sig_releasependingsigaction.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
sig_releasependingsignal.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
sig_removependingsignal.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
sig_sleep.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
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 sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
sig_usleep.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
sig_waitinfo.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
signal.h signal/nxsig_pengingset: move nxsig_pendingset to common header 2022-12-28 23:05:58 +08:00