Commit 2662aad7 authored by Russ Cox's avatar Russ Cox

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
parent 72154b04
...@@ -343,6 +343,7 @@ procthreadpids(int id, int **thread) ...@@ -343,6 +343,7 @@ procthreadpids(int id, int **thread)
if(t == nil) if(t == nil)
return -1; return -1;
pid = t->pid; pid = t->pid;
addpid(pid, 1); // force refresh of thread list
n = 0; n = 0;
for(i=0; i<nthr; i++) for(i=0; i<nthr; i++)
if(thr[i].pid == pid) if(thr[i].pid == pid)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment