summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpj <rpj>1999-05-13 19:42:41 +0000
committerrpj <rpj>1999-05-13 19:42:41 +0000
commit67f6e902524b3f59d7de7bf8e3574ff7a7911028 (patch)
tree28d60438ccded1b7795ee6f4161c71586970210b
parent5ad9bc631048467dba8964ab840a71990aabeae3 (diff)
Fri May 14 12:13:18 1999 Ross Johnson <rpj@swan.canberra.edu.au>
* attr.c (pthread_attr_setdetachstate): Fix logic bug.
-rw-r--r--ChangeLog4
-rw-r--r--attr.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f3ff6db..0eee706 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri May 14 12:13:18 1999 Ross Johnson <rpj@swan.canberra.edu.au>
+
+ * attr.c (pthread_attr_setdetachstate): Fix logic bug.
+
Wed Apr 7 14:09:52 1999 Ross Johnson <rpj@swan.canberra.edu.au>
* errno.c (_REENTRANT || _MT): Invert condition.
diff --git a/attr.c b/attr.c
index c3537b0..fa7de12 100644
--- a/attr.c
+++ b/attr.c
@@ -480,7 +480,7 @@ pthread_attr_setdetachstate(pthread_attr_t *attr,
return EINVAL;
}
- if (detachstate != PTHREAD_CREATE_JOINABLE ||
+ if (detachstate != PTHREAD_CREATE_JOINABLE &&
detachstate != PTHREAD_CREATE_DETACHED)
{
return EINVAL;