View Issue Details

IDProjectCategoryView StatusLast Update
0001361Issue 8 draftsSystem Interfacespublic2024-06-11 09:12
Reportergeoffclare Assigned To 
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted 
Product VersionDraft 1 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionfork()
Page Number877
Line Number29947
Final Accepted Text
Summary0001361: fork() changes incomplete
DescriptionThe changes from bug 0000062 to add _Fork() and make fork() non-async-signal-safe missed some things on the fork() page:

The text "When the application calls fork() from a signal handler and any of the fork handlers registered by pthread_atfork() calls a function that is not async-signal-safe, the behavior is undefined" in one of the later bullet items is redundant now that fork() itself is not async-signal-safe.

There is a paragraph in RATIONALE explaining why the above text is there.
Desired ActionOn page 877 line 29947 section fork(), delete:
When the application calls fork() from a signal handler and any of the fork handlers registered by pthread_atfork() calls a function that is not async-signal-safe, the behavior is undefined.

On page 879 line 30059 section fork(), delete:
While the fork() function is async-signal-safe, there is no way for an implementation to determine whether the fork handlers established by pthread_atfork() are async-signal-safe. The fork handlers may attempt to execute portions of the implementation that are not async-signal- safe, such as those that are protected by mutexes, leading to a deadlock condition. It is therefore undefined for the fork handlers to execute functions that are not async-signal-safe when fork() is called from a signal handler.
Tagsissue8

Relationships

related to 0000062 Closedajosey 1003.1(2008)/Issue 7 Is it correct to list fork as an async-signal safe interface 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-07-02 13:52 geoffclare New Issue
2020-07-02 13:52 geoffclare Name => Geoff Clare
2020-07-02 13:52 geoffclare Organization => The Open Group
2020-07-02 13:52 geoffclare Section => fork()
2020-07-02 13:52 geoffclare Page Number => 877
2020-07-02 13:52 geoffclare Line Number => 29947
2020-07-02 13:53 geoffclare Relationship added related to 0000062
2020-09-10 15:51 Don Cragun Status New => Resolved
2020-09-10 15:51 Don Cragun Resolution Open => Accepted
2020-09-10 15:51 Don Cragun Tag Attached: issue8
2020-09-17 09:14 geoffclare Status Resolved => Applied
2024-06-11 09:12 agadmin Status Applied => Closed