[RTEMS Project] #4713: Make pthread_atfork follow FACE Technical Standard Behavior for Single Process Environments

RTEMS trac trac at rtems.org
Fri Sep 2 16:38:18 UTC 2022


#4713: Make pthread_atfork follow FACE Technical Standard Behavior for Single
Process Environments
----------------------------+---------------------------
  Reporter:  Joel Sherrill  |      Owner:  Joel Sherrill
      Type:  defect         |     Status:  assigned
  Priority:  normal         |  Milestone:  6.1
 Component:  posix          |    Version:
  Severity:  normal         |   Keywords:
Blocked By:                 |   Blocking:
----------------------------+---------------------------
 The POSIX specification for pthread_atfork() does not address the behavior
 when in a single process environment. The RTEMS implementation was an
 arbitrary decision on our part with no basis from the wider POSIX
 community. The FACE Technical Standard includes profiles without multiple
 process support and has defined the behavior for this method as follows:

     When multiple POSIX processes are supported, pthread_atfork(), the
 functionality is per the POSIX standard. When multiple POSIX processes are
 not supported, pthread_atfork() should return 0. The provision to support
 only a single process is not addressed in the POSIX standard.


 The RTEMS implementation currently returns ENOSYS instead of 0.

 This ticket is to track the change to RTEMS and the documentation.

--
Ticket URL: <http://devel.rtems.org/ticket/4713>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list