summaryrefslogtreecommitdiff
path: root/libps
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-24 17:49:53 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-24 17:49:53 +0000
commit61b74a4c6890d684c9f169fbb4c443b2b450aeb7 (patch)
tree70f6f1f9413ac3b54fe138d7a20ecbde3e06e1d4 /libps
parent10b18637d1416d2b84a8d7d52647f74a1f0422b5 (diff)
(merge_procinfo): And update *HAVE with PSTAT_PROC_INFO from
REALLY_HAVE here.
Diffstat (limited to 'libps')
-rw-r--r--libps/procstat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libps/procstat.c b/libps/procstat.c
index 7584c047..4167e130 100644
--- a/libps/procstat.c
+++ b/libps/procstat.c
@@ -177,7 +177,8 @@ merge_procinfo (process_t server, pid_t pid,
previously fetched thread-info is out-of-date now, so we have to make do
with whatever we've fetched this time. */
*have =
- (*have & ~PSTAT_PROCINFO_THREAD) | (really_have & PSTAT_PROCINFO_THREAD);
+ (*have & ~(PSTAT_PROCINFO_THREAD | PSTAT_PROC_INFO) )
+ | (really_have & (PSTAT_PROCINFO_THREAD | PSTAT_PROC_INFO));
*pi = new_pi;
*pi_size = new_pi_size;