The following issue has been SUBMITTED. ====================================================================== https://austingroupbugs.net/view.php?id=1848 ====================================================================== Reported By: enh Assigned To: ====================================================================== Project: 1003.1(2024)/Issue8 Issue ID: 1848 Category: System Interfaces Type: Enhancement Request Severity: Editorial Priority: normal Status: New Name: Elliott Hughes Organization: Google User Reference: Section: kill() Page Number: (page or range of pages) Line Number: (Line or range of lines) Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2024-08-02 17:07 UTC Last Modified: 2024-08-02 17:07 UTC ====================================================================== Summary: remove TOCTOU pid checking suggestions Description: various pages (such as https://pubs.opengroup.org/onlinepubs/9799919799/functions/kill.html) currently have text like
> If sig is 0 (the null signal), error checking is performed but no signal is actually sent. The null signal can be used to check the validity of pid. the second sentence is bad advice, because the pid could become invalid before the function even returns, let alone in the window between the function returning and the caller then attempting to make use of that "knowledge". this encourages the introduction of TOCTOU bugs. Desired Action: such text should be removed from every page on which it occurs (a quick web search turned up kill() and sigqueue()). ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2024-08-02 17:07 enh New Issue 2024-08-02 17:07 enh Name => Elliott Hughes 2024-08-02 17:07 enh Organization => Google 2024-08-02 17:07 enh Section => kill() 2024-08-02 17:07 enh Page Number => (page or range of pages) 2024-08-02 17:07 enh Line Number => (Line or range of lines) ======================================================================
