summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthreadatfork.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2022-09-02 12:42:08 -0500
committerJoel Sherrill <joel@rtems.org>2022-09-06 17:09:11 -0500
commitdbba94304472ebd9d2965741cf75b501a84fb60e (patch)
tree0c19c73298e0c630b50ea04db4c61330b4db0588 /cpukit/posix/src/pthreadatfork.c
parentbsp/riscv: Add NOEL-V BSP (diff)
downloadrtems-dbba94304472ebd9d2965741cf75b501a84fb60e.tar.bz2
pthread_atfork(): Change to behavior from FACE Technical Standard
Closes #4713.
Diffstat (limited to '')
-rw-r--r--cpukit/posix/src/pthreadatfork.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/cpukit/posix/src/pthreadatfork.c b/cpukit/posix/src/pthreadatfork.c
index 1ee03a0111..27e6c725ea 100644
--- a/cpukit/posix/src/pthreadatfork.c
+++ b/cpukit/posix/src/pthreadatfork.c
@@ -8,7 +8,7 @@
*/
/*
- * COPYRIGHT (c) 1989-2007.
+ * COPYRIGHT (c) 1989-2007, 2022.
* On-Line Applications Research Corporation (OAR).
*
* Redistribution and use in source and binary forms, with or without
@@ -47,12 +47,8 @@
*
* 3.1.3 Register Fork Handlers, P1003.1c/Draft 10, P1003.1c/Draft 10, p. 27
*
- * RTEMS does not support processes, so we fall under this and do not
- * provide this routine:
- *
- * "Either the implementation shall support the pthread_atfork() function
- * as described above or the pthread_atfork() funciton shall not be
- * provided."
+ * RTEMS does not support processes and we follow the FACE Technical Standard
+ * recommendation to return 0 when multiple processes are not supported.
*/
int pthread_atfork(
void (*prepare)(void),
@@ -63,5 +59,6 @@ int pthread_atfork(
(void) prepare;
(void) parent;
(void) child;
- rtems_set_errno_and_return_minus_one( ENOSYS );
+
+ return 0;
}