summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-03-10 16:56:08 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-03-10 16:56:08 +0000
commitfec60e9272537f9364d24f6dcf6861e49cb337bd (patch)
tree3d2bd575a2aea30e4f4c9195623fc3fc7f48cf42
parentupdated version to 4.0.0 (diff)
downloadrtems-fec60e9272537f9364d24f6dcf6861e49cb337bd.tar.bz2
Fixed bug where the initial detachstate was not being set properly
-rw-r--r--c/src/exec/posix/src/pthread.c2
-rw-r--r--cpukit/posix/src/pthread.c2
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;