mirror of
https://github.com/golang/go
synced 2024-11-18 22:55:23 -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:
parent
72154b042f
commit
2662aad7b7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user