diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/src/pthreadatfork.c | 13 |
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; } |