8cca30b44c
Signal must be masked when it is delivered to a signal handler per: https://pubs.opengroup.org/onlinepubs/007904875/functions/sigaction.html: When a signal is caught by a signal-catching function installed by sigaction(), a new signal mask is calculated and installed for the duration of the signal-catching function (or until a call to either sigprocmask() or sigsuspend() is made). This mask is formed by taking the union of the current signal mask and the value of the sa_mask for the signal being delivered [XSI] [Option Start] unless SA_NODEFER or SA_RESETHAND is set, [Option End] and then including the signal being delivered. If and when the user's signal handler returns normally, the original signal mask is restored. Any action queued for that signal while the signal is masked should be deferred. It should go into the group pending signal list and should not be processed until until the signal is unmasked (which should occur when the signal handler returns). |
||
---|---|---|
.. | ||
Make.defs | ||
sig_action.c | ||
sig_allocpendingsigaction.c | ||
sig_cleanup.c | ||
sig_default.c | ||
sig_deliver.c | ||
sig_dispatch.c | ||
sig_findaction.c | ||
sig_initialize.c | ||
sig_kill.c | ||
sig_lowest.c | ||
sig_nanosleep.c | ||
sig_notification.c | ||
sig_pause.c | ||
sig_pending.c | ||
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 | ||
sig_tgkill.c | ||
sig_timedwait.c | ||
sig_unmaskpendingsignal.c | ||
sig_usleep.c | ||
sig_waitinfo.c | ||
signal.h |