diff options
Diffstat (limited to 'proc')
-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++) |