A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=610 ====================================================================== Reported By: dalias Assigned To: ajosey ====================================================================== Project: 1003.1(2008)/Issue 7 Issue ID: 610 Category: System Interfaces Type: Clarification Requested Severity: Objection Priority: normal Status: Under Review Name: Rich Felker Organization: musl libc User Reference: Section: exit Page Number: unknown Line Number: unknown Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2012-09-24 20:17 UTC Last Modified: 2022-08-25 16:29 UTC ====================================================================== Summary: Possible race condition in requirements of exit and their interaction with threads. ======================================================================
---------------------------------------------------------------------- (0005947) geoffclare (manager) - 2022-08-25 16:29 https://austingroupbugs.net/view.php?id=610#c5947 ---------------------------------------------------------------------- On 2018 edition page 796 line 27070, change:<blockquote>The <i>exit</i>() function shall then flush all open streams with unwritten buffered data and close all open streams. Finally, the process shall be terminated [CX]with the same consequences as described in [xref to Consequences of Process Termination][/CX].</blockquote>to:<blockquote>The <i>exit</i>() function shall then flush all open streams with unwritten buffered data. [CX]For each stream which is the active handle to its underlying file descriptor, and for which the file is not already at EOF and is capable of seeking, the file offset of the underlying open file description shall be set to the file position of the stream. For each open stream, the <i>exit</i>() function shall perform the equivalent of a <i>close</i>() on the file descriptor that is associated with the stream.[/CX] Finally, the process shall be terminated [CX]with the same consequences as described in [xref to Consequences of Process Termination][/CX].</blockquote> Issue History Date Modified Username Field Change ====================================================================== 2012-09-24 20:17 dalias New Issue 2012-09-24 20:17 dalias Status New => Under Review 2012-09-24 20:17 dalias Assigned To => ajosey 2012-09-24 20:17 dalias Name => Rich Felker 2012-09-24 20:17 dalias Organization => musl libc 2012-09-24 20:17 dalias Section => exit 2012-09-24 20:17 dalias Page Number => unknown 2012-09-24 20:17 dalias Line Number => unknown 2022-08-25 16:29 geoffclare Note Added: 0005947 ======================================================================