A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=1901 ====================================================================== Reported By: dancross Assigned To: ====================================================================== Project: 1003.1(2024)/Issue8 Issue ID: 1901 Category: System Interfaces Type: Clarification Requested Severity: Editorial Priority: normal Status: New Name: Dan Cross Organization: User Reference: Section: sigaction Page Number: 2046 Line Number: 67134-67135 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2025-01-09 16:43 UTC Last Modified: 2025-01-16 16:45 UTC ====================================================================== Summary: sigaction() incorrectly states (sig)longjmp are not in the list of async-signal-safe functions ====================================================================== Relationships ID Summary ---------------------------------------------------------------------- related to 0000516 Calling longjmp() from a signal handler ======================================================================
---------------------------------------------------------------------- (0007052) geoffclare (manager) - 2025-01-16 16:45 https://austingroupbugs.net/view.php?id=1901#c7052 ---------------------------------------------------------------------- On page 2046 line 67134 section sigaction(), change: <blockquote>Note that <i>longjmp</i>() and <i>siglongjmp</i>() are not in the list of async-signal-safe functions. This is because the code executing after <i>longjmp</i>() and <i>siglongjmp</i>() can call any unsafe functions with the same danger as calling those unsafe functions directly from the signal handler. Applications that use <i>longjmp</i>() and <i>siglongjmp</i>() from within signal handlers require rigorous protection in order to be portable.</blockquote> to: <blockquote>Note that although <i>longjmp</i>() and <i>siglongjmp</i>() are in the list of async-signal-safe functions, it is recommended that applications do not call them from signal handlers. See the DESCRIPTION and APPLICATION USAGE for [xref to longjmp()].</blockquote> Issue History Date Modified Username Field Change ====================================================================== 2025-01-09 16:43 dancross New Issue 2025-01-09 16:43 dancross Name => Dan Cross 2025-01-09 16:43 dancross Section => sigaction 2025-01-09 16:43 dancross Page Number => 2046 2025-01-09 16:43 dancross Line Number => 67134-67135 2025-01-16 15:05 geoffclare Note Added: 0007044 2025-01-16 15:06 geoffclare Relationship added related to 0000516 2025-01-16 16:45 geoffclare Note Added: 0007052 ======================================================================
