From dbba94304472ebd9d2965741cf75b501a84fb60e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 2 Sep 2022 12:42:08 -0500 Subject: pthread_atfork(): Change to behavior from FACE Technical Standard Closes #4713. --- cpukit/posix/src/pthreadatfork.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'cpukit/posix/src/pthreadatfork.c') 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; } -- cgit v1.2.3