diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-08-31 01:34:44 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-08-31 01:34:44 +0200 |
commit | 9388ffcc3103499df56eb9d7e49e136e8653e603 (patch) | |
tree | 88c643c510be6d2257c311bd1fd94e196823622d | |
parent | 8860422b814636d10951e98fa6367432716f3cf2 (diff) |
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.
-rw-r--r-- | proc/info.c | 6 |
1 files changed, 6 insertions, 0 deletions
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++) |