summaryrefslogtreecommitdiff
path: root/attr.c
diff options
context:
space:
mode:
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;