diff options
author | Roland McGrath <roland@gnu.org> | 2002-06-05 23:28:46 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-06-05 23:28:46 +0000 |
commit | f4117e8824b3521041cb432eca07678887c6c80a (patch) | |
tree | 906d611b42769e5a9b6f504b1b5c5cf8889338df /proc/info.c | |
parent | bff28ce5be4a8277e23f7445d57aa885fa3896f0 (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.
Diffstat (limited to 'proc/info.c')
-rw-r--r-- | proc/info.c | 8 |
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++) { |