Continue fighting pthreads.

Clean up thread library a bit too.
This commit is contained in:
rsc 2004-09-23 03:01:36 +00:00
parent c6687d4591
commit 7966faa931
19 changed files with 539 additions and 654 deletions

View file

@ -46,7 +46,7 @@ __threadgetproc(int rm)
if(!multi)
return theproc;
pid = _threadgetpid();
pid = getpid();
lock(&ptablock);
h = ((unsigned)pid)%PTABHASH;