diff options
author | julian <julian@FreeBSD.org> | 2004-10-04 06:45:48 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2004-10-04 06:45:48 +0000 |
commit | 395c906e95c3dd63b5994b9fd2a3800cf70771c0 (patch) | |
tree | 464172a085df1ae1466ea163bdc1160cb724c592 /sys/kern/kern_descrip.c | |
parent | c5f1195949b1c1f45c21c9b3a9fe3f780a832752 (diff) | |
download | FreeBSD-src-395c906e95c3dd63b5994b9fd2a3800cf70771c0.zip FreeBSD-src-395c906e95c3dd63b5994b9fd2a3800cf70771c0.tar.gz |
Another case where we need to guard against a partially
constructed process.
Submitted by: Stephan Uphoff ( ups at tree.com )
MFC after: 3 days
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r-- | sys/kern/kern_descrip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 128faa0..769b8db 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -2360,6 +2360,8 @@ sysctl_kern_file(SYSCTL_HANDLER_ARGS) xf.xf_size = sizeof(xf); sx_slock(&allproc_lock); LIST_FOREACH(p, &allproc, p_list) { + if (p->p_state == PRS_NEW) + continue; PROC_LOCK(p); if (p_cansee(req->td, p) != 0) { PROC_UNLOCK(p); |