diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | attr.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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. @@ -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; |