diff options
author | David Greenman <dg@FreeBSD.org> | 1995-07-29 05:14:28 +0000 |
---|---|---|
committer | David Greenman <dg@FreeBSD.org> | 1995-07-29 05:14:28 +0000 |
commit | ea71c703e4494d23d70604611174a20b19366faf (patch) | |
tree | 03cb5571a3427abec5e68baad379a1d1b5fbcc4b | |
parent | 57bcf8a67192b1322347f303df9a71a2afadd796 (diff) |
Notes
-rw-r--r-- | sys/kern/kern_sysctl.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index cec5d558d3925..76f809fbeb99c 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94 - * $Id: kern_sysctl.c,v 1.24 1995/05/12 19:17:31 wollman Exp $ + * $Id: kern_sysctl.c,v 1.25 1995/05/30 08:05:46 rgrimes Exp $ */ /* @@ -713,11 +713,12 @@ fill_eproc(p, ep) bzero(ep, sizeof(*ep)); ep->e_paddr = p; - if (p->p_cred) + if (p->p_cred) { ep->e_pcred = *p->p_cred; - if (p->p_ucred) - ep->e_ucred = *p->p_ucred; - if (p->p_stat != SIDL && p->p_stat != SZOMB) { + if (p->p_ucred) + ep->e_ucred = *p->p_ucred; + } + if (p->p_stat != SIDL && p->p_stat != SZOMB && p->p_vmspace != NULL) { register struct vmspace *vm = p->p_vmspace; #ifdef pmap_resident_count |