summaryrefslogtreecommitdiff
path: root/proc/info.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc/info.c')
-rw-r--r--proc/info.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/proc/info.c b/proc/info.c
index 063434d1..f8fcda2e 100644
--- a/proc/info.c
+++ b/proc/info.c
@@ -321,9 +321,12 @@ S_proc_getprocinfo (struct proc *callerp,
if (!p)
return ESRCH;
- if (flags & (PI_FETCH_THREAD_SCHED | PI_FETCH_THREAD_BASIC
- | PI_FETCH_THREAD_WAITS))
- flags |= PI_FETCH_THREADS;
+ /* Avoid nasty blockage; awaiting further thought. XXX */
+ flags &= ~PI_FETCH_THREAD_WAITS;
+
+ if (flags & (PI_FETCH_THREAD_SCHED | PI_FETCH_THREAD_BASIC
+ | PI_FETCH_THREAD_WAITS))
+ flags |= PI_FETCH_THREADS;
if (flags & PI_FETCH_THREADS)
{