1
0
mirror of https://github.com/golang/go synced 2024-11-18 23:05:06 -07:00

libmach_amd64: refresh darwin thread list each time we get asked.

R=r
DELTA=1  (1 added, 0 deleted, 0 changed)
OCL=15982
CL=15993
This commit is contained in:
Russ Cox 2008-09-26 14:10:33 -07:00
parent 72154b042f
commit 2662aad7b7

View File

@ -343,6 +343,7 @@ procthreadpids(int id, int **thread)
if(t == nil)
return -1;
pid = t->pid;
addpid(pid, 1); // force refresh of thread list
n = 0;
for(i=0; i<nthr; i++)
if(thr[i].pid == pid)