8 Jan 2009 08:41
Defect in XSH 2.4.3
Defect report from : G. K. Rajani , Hewlett Packard (Please direct followup comments direct to austin-group-l@...) <at> page 489 line 16723 section 2.4.3 comment {GKRFORK012009} Problem: Edition of Specification (Year): 2008 Defect code : 3. Clarification required Section 2.4.3. P489 L16723 Asserts that fork() is async-signal safe. The fork() system interfaces section P882 L29311-29312 asserts that registered fork handlers are executed during the fork. P882 L 29313-29315 asserts that only async-signal safe functions are to be called by pthread_at_fork handlers to provide signal safety for fork(). The rationale section of pthread_atfork() explains the purpose of these functions. As per this section, XSH P1529, L49389-49402, it is possible that multithreaded libraries could be used by single threaded applications. In which case, atfork handlers are essential for the libraries to protect their internal state during fork. As explained further P1530, L49403-49404, pthread_atfork functions are mainly required to acquire/release mutex locks, for protecting the applications/libraries from fork() calls. C-library needs to as well(Continue reading)
RSS Feed