diff options
author | bje <bje> | 1998-07-23 15:23:43 +0000 |
---|---|---|
committer | bje <bje> | 1998-07-23 15:23:43 +0000 |
commit | 17c1d029397de6a700ea98df8650f4b0982af8b4 (patch) | |
tree | 160f66a3801091c20639502c32c84e1d5bc7fa00 | |
parent | 1d33a64094efc72df5905d47cbe796552bd95d3e (diff) |
1998-07-24 Ben Elliston <bje@cygnus.com>
* attr.c (pthread_attr_init): Initialise cancelability and
canceltype structure members.
-rw-r--r-- | attr.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |