summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-06-05 23:28:46 +0000
committerRoland McGrath <roland@gnu.org>2002-06-05 23:28:46 +0000
commitf4117e8824b3521041cb432eca07678887c6c80a (patch)
tree906d611b42769e5a9b6f504b1b5c5cf8889338df
parentbff28ce5be4a8277e23f7445d57aa885fa3896f0 (diff)
2002-06-05 Roland McGrath <roland@frob.com>
* info.c (S_proc_getprocinfo): If PI_FETCH_TASKEVENTS is set in *FLAGS, fill in PI->taskevents using task_info with TASK_EVENTS_INFO.
-rw-r--r--proc/info.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/proc/info.c b/proc/info.c
index 830aa877..ec072fa5 100644
--- a/proc/info.c
+++ b/proc/info.c
@@ -488,6 +488,14 @@ S_proc_getprocinfo (struct proc *callerp,
}
#endif
}
+ if (*flags & PI_FETCH_TASKEVENTS)
+ {
+ tkcount = TASK_EVENTS_INFO_COUNT;
+ err = task_info (task, TASK_EVENTS_INFO,
+ (task_info_t) &pi->taskevents, &tkcount);
+ if (err == MACH_SEND_INVALID_DEST)
+ err = ESRCH;
+ }
for (i = 0; i < nthreads; i++)
{