summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorredman <redman>1999-07-31 01:55:48 (GMT)
committerredman <redman>1999-07-31 01:55:48 (GMT)
commit7736a343edbd9a5f2feb71878361bc0f1f81640b (patch)
tree503fb1eb0c7f61b311f589b8de26f9df5ec6a452 /unix
parent4440b020d403deecad8037fdcbac009f40f8296a (diff)
downloadtcl-7736a343edbd9a5f2feb71878361bc0f1f81640b.zip
tcl-7736a343edbd9a5f2feb71878361bc0f1f81640b.tar.gz
tcl-7736a343edbd9a5f2feb71878361bc0f1f81640b.tar.bz2
* unix/tclUnixThrd.c: Applied patch to fix threads on Irix 6.5.
Patch from James Dennett. [Bug: 2450] * tests/info.test: Enable test for tclParse.c change (info complete).
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixThrd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c
index cb66d08..ac0804e 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -77,7 +77,9 @@ TclpThreadCreate(idPtr, proc, clientData)
pthread_attr_init(&attr);
pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM);
if (pthread_create((pthread_t *)idPtr, &attr,
- (void * (*)())proc, (void *)clientData) < 0) {
+ (void * (*)())proc, (void *)clientData) &&
+ pthread_create((pthread_t *)idPtr, NULL,
+ (void * (*)())proc, (void *)clientData)) {
result = TCL_ERROR;
} else {
result = TCL_OK;