diff options
Diffstat (limited to 'cpukit/posix/src/cond.c')
-rw-r--r-- | cpukit/posix/src/cond.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cpukit/posix/src/cond.c b/cpukit/posix/src/cond.c index bba0f1991f..5dd5493808 100644 --- a/cpukit/posix/src/cond.c +++ b/cpukit/posix/src/cond.c @@ -142,8 +142,15 @@ int pthread_condattr_setpshared( if ( !attr ) return EINVAL; - attr->process_shared = pshared; - return 0; + switch ( pshared ) { + case PTHREAD_PROCESS_SHARED: + case PTHREAD_PROCESS_PRIVATE: + attr->process_shared = pshared; + return 0; + + default: + return EINVAL; + } } /*PAGE |