diff options
author | rsc <devnull@localhost> | 2004-12-27 16:52:26 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-12-27 16:52:26 +0000 |
commit | 4dbefdd41ca866a10cee633a3ee9a67d9204b052 (patch) | |
tree | ff9ba8d5c908864b8d7727dd33f9888247f465a1 /src/libthread/pthread.c | |
parent | fd4655403059a7b5c042e3ba206b9f3f94b9f831 (diff) | |
download | plan9port-4dbefdd41ca866a10cee633a3ee9a67d9204b052.tar.gz plan9port-4dbefdd41ca866a10cee633a3ee9a67d9204b052.tar.bz2 plan9port-4dbefdd41ca866a10cee633a3ee9a67d9204b052.zip |
start linux pre-2.6 port
Diffstat (limited to 'src/libthread/pthread.c')
-rw-r--r-- | src/libthread/pthread.c | 6 |
1 files changed, 3 insertions, 3 deletions
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(); } |