From fec60e9272537f9364d24f6dcf6861e49cb337bd Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 10 Mar 1997 16:56:08 +0000 Subject: Fixed bug where the initial detachstate was not being set properly --- c/src/exec/posix/src/pthread.c | 2 +- cpukit/posix/src/pthread.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c/src/exec/posix/src/pthread.c b/c/src/exec/posix/src/pthread.c index b4c1e7e1f4..95213389cb 100644 --- a/c/src/exec/posix/src/pthread.c +++ b/c/src/exec/posix/src/pthread.c @@ -998,7 +998,7 @@ int pthread_create( api = the_thread->API_Extensions[ THREAD_API_POSIX ]; api->Attributes = *the_attr; - api->detachstate = attr->detachstate; + api->detachstate = the_attr->detachstate; api->schedpolicy = schedpolicy; api->schedparam = schedparam; diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index b4c1e7e1f4..95213389cb 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c @@ -998,7 +998,7 @@ int pthread_create( api = the_thread->API_Extensions[ THREAD_API_POSIX ]; api->Attributes = *the_attr; - api->detachstate = attr->detachstate; + api->detachstate = the_attr->detachstate; api->schedpolicy = schedpolicy; api->schedparam = schedparam; -- cgit v1.2.3