From f4117e8824b3521041cb432eca07678887c6c80a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 5 Jun 2002 23:28:46 +0000 Subject: 2002-06-05 Roland McGrath * info.c (S_proc_getprocinfo): If PI_FETCH_TASKEVENTS is set in *FLAGS, fill in PI->taskevents using task_info with TASK_EVENTS_INFO. --- proc/info.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'proc') 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++) { -- cgit v1.2.3