From 9388ffcc3103499df56eb9d7e49e136e8653e603 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 31 Aug 2010 01:34:44 +0200 Subject: Make proc not claim it was able to fetch PI_FETCH_TASKEVENTS * proc/info.c (S_proc_getprocinfo): Clear PI_FETCH_TASKEVENTS from `flags' when task_info. --- proc/info.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proc/info.c b/proc/info.c index ec072fa5..18cb69fc 100644 --- a/proc/info.c +++ b/proc/info.c @@ -495,6 +495,12 @@ S_proc_getprocinfo (struct proc *callerp, (task_info_t) &pi->taskevents, &tkcount); if (err == MACH_SEND_INVALID_DEST) err = ESRCH; + if (err) + { + /* Something screwy, give up on this bit of info. */ + *flags &= ~PI_FETCH_TASKEVENTS; + err = 0; + } } for (i = 0; i < nthreads; i++) -- cgit v1.2.3