macos: dont return if we cannot get workqueueinfo.

Set the memory to zero here when it's unavailable.
edi-0.5
Alastair Poole 4 years ago
parent 7d9ef26986
commit 39d22d66ea
  1. 2
      src/bin/process.c

@ -671,7 +671,7 @@ proc_info_by_pid(int pid)
size = proc_pidinfo(pid, PROC_PIDWORKQUEUEINFO, 0, &workqueue, sizeof(workqueue));
if (size != sizeof(workqueue))
return NULL;
memset(&workqueue, 0, sizeof(struct proc_workqueueinfo));
Proc_Info *p = calloc(1, sizeof(Proc_Info));
if (!p) return NULL;

Loading…
Cancel
Save