From 4dbefdd41ca866a10cee633a3ee9a67d9204b052 Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 27 Dec 2004 16:52:26 +0000 Subject: start linux pre-2.6 port --- src/libthread/pthread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libthread/pthread.c') diff --git a/src/libthread/pthread.c b/src/libthread/pthread.c index 6540605d..2ddd8c72 100644 --- a/src/libthread/pthread.c +++ b/src/libthread/pthread.c @@ -82,8 +82,8 @@ startprocfn(void *v) fn = a[0]; p = a[1]; free(a); - p->tid = pthread_self(); - pthread_detach(p->tid); + p->osprocid = pthread_self(); + pthread_detach(p->osprocid); (*fn)(p); @@ -101,7 +101,7 @@ _procstart(Proc *p, void (*fn)(Proc*)) a[0] = fn; a[1] = p; - if(pthread_create(&p->tid, nil, (void*(*)(void*))startprocfn, (void*)a) < 0){ + if(pthread_create(&p->osprocid, nil, (void*(*)(void*))startprocfn, (void*)a) < 0){ fprint(2, "pthread_create: %r\n"); abort(); } -- cgit v1.2.3