summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_create.c
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>1999-11-28 05:38:13 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>1999-11-28 05:38:13 +0000
commit7285bccf1a9224fadd3b7b81be034cd04f35a820 (patch)
tree124a02d2660bf074fa7b02495dcb9d400ac52505 /lib/libpthread/thread/thr_create.c
parentd29b1c8b20283bd2639ac939af816f5a6824dbb1 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_create.c')
-rw-r--r--lib/libpthread/thread/thr_create.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_create.c b/lib/libpthread/thread/thr_create.c
index b3ea39124a7c6..f7c95d05d7e44 100644
--- a/lib/libpthread/thread/thr_create.c
+++ b/lib/libpthread/thread/thr_create.c
@@ -50,9 +50,7 @@ pthread_create(pthread_t * thread, const pthread_attr_t * attr,
void *(*start_routine) (void *), void *arg)
{
int f_gc = 0;
- int i;
int ret = 0;
- int status;
pthread_t gc_thread;
pthread_t new_thread;
pthread_attr_t pattr;
@@ -166,6 +164,9 @@ pthread_create(pthread_t * thread, const pthread_attr_t * attr,
new_thread->start_routine = start_routine;
new_thread->arg = arg;
+ new_thread->cancelflags = PTHREAD_CANCEL_ENABLE |
+ PTHREAD_CANCEL_DEFERRED;
+
/*
* Write a magic value to the thread structure
* to help identify valid ones: