diff options
author | rpj <rpj> | 1999-05-13 19:42:41 +0000 |
---|---|---|
committer | rpj <rpj> | 1999-05-13 19:42:41 +0000 |
commit | 67f6e902524b3f59d7de7bf8e3574ff7a7911028 (patch) | |
tree | 28d60438ccded1b7795ee6f4161c71586970210b /attr.c | |
parent | 5ad9bc631048467dba8964ab840a71990aabeae3 (diff) |
Fri May 14 12:13:18 1999 Ross Johnson <rpj@swan.canberra.edu.au>
* attr.c (pthread_attr_setdetachstate): Fix logic bug.
Diffstat (limited to 'attr.c')
-rw-r--r-- | attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |