summaryrefslogtreecommitdiff
path: root/attr.c
diff options
context:
space:
mode:
authorbje <bje>1998-07-23 15:23:43 +0000
committerbje <bje>1998-07-23 15:23:43 +0000
commit17c1d029397de6a700ea98df8650f4b0982af8b4 (patch)
tree160f66a3801091c20639502c32c84e1d5bc7fa00 /attr.c
parent1d33a64094efc72df5905d47cbe796552bd95d3e (diff)
1998-07-24 Ben Elliston <bje@cygnus.com>
* attr.c (pthread_attr_init): Initialise cancelability and canceltype structure members.
Diffstat (limited to 'attr.c')
-rw-r--r--attr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/attr.c b/attr.c
index 00a728b..6f89672 100644
--- a/attr.c
+++ b/attr.c
@@ -98,7 +98,8 @@ pthread_attr_init(pthread_attr_t *attr)
attr->stacksize = PTHREAD_STACK_MIN;
#endif
- attr->cancelability = _PTHREAD_CANCEL_DEFAULTS;
+ attr->cancelability = PTHREAD_CANCEL_ENABLE;
+ attr->canceltype = PTHREAD_CANCEL_DEFERRED;
attr->valid = 0;
return 0;