From a6fa9db91eb4711a1fda2d9d0c3009ebd63b170b Mon Sep 17 00:00:00 2001 From: fangxinyong Date: Tue, 21 Nov 2023 22:10:03 +0800 Subject: [PATCH] libs: fix the default value of process-shared attribute pass ltp case: open_posix_testsuite/conformance/interfaces/pthread_condattr_getpshared/2-1.c Reference: https://pubs.opengroup.org/onlinepubs/009696899/functions/pthread_mutexattr_getpshared.html Signed-off-by: fangxinyong --- libs/libc/pthread/pthread_condattr_init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/libc/pthread/pthread_condattr_init.c b/libs/libc/pthread/pthread_condattr_init.c index d217ceeaf8..d420374f55 100644 --- a/libs/libc/pthread/pthread_condattr_init.c +++ b/libs/libc/pthread/pthread_condattr_init.c @@ -61,6 +61,7 @@ int pthread_condattr_init(FAR pthread_condattr_t *attr) else { attr->clockid = CLOCK_REALTIME; + attr->pshared = PTHREAD_PROCESS_PRIVATE; } linfo("Returning %d\n", ret);