projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix namespace violation in sys/shm.h
[musl]
/
src
/
thread
/
pthread_attr_setdetachstate.c
diff --git
a/src/thread/pthread_attr_setdetachstate.c
b/src/thread/pthread_attr_setdetachstate.c
index
bfffba8
..
1b71278
100644
(file)
--- a/
src/thread/pthread_attr_setdetachstate.c
+++ b/
src/thread/pthread_attr_setdetachstate.c
@@
-2,6
+2,7
@@
int pthread_attr_setdetachstate(pthread_attr_t *a, int state)
{
int pthread_attr_setdetachstate(pthread_attr_t *a, int state)
{
+ if (state > 1U) return EINVAL;
a->_a_detach = state;
return 0;
}
a->_a_detach = state;
return 0;
}