Page MenuHomeFreeBSD

D54234.id168164.diff
No OneTemporary

D54234.id168164.diff

diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -237,11 +237,10 @@
struct proc *p;
struct thread *td;
- /* INVARIANTS checks go here */
- p = (struct proc *)mem;
+ p = mem;
td = FIRST_THREAD_IN_PROC(p);
if (td != NULL) {
- KASSERT((p->p_numthreads == 1),
+ KASSERT(p->p_numthreads == 1,
("too many threads in exiting process"));
/* Free all OSD associated to this thread. */
@@ -256,8 +255,7 @@
#ifdef KDTRACE_HOOKS
kdtrace_proc_dtor(p);
#endif
- if (p->p_ksi != NULL)
- KASSERT(! KSI_ONQ(p->p_ksi), ("SIGCHLD queue"));
+ KASSERT(p->p_ksi == NULL || !KSI_ONQ(p->p_ksi), ("SIGCHLD queue"));
}
/*

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 13, 1:37 AM (16 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31386678
Default Alt Text
D54234.id168164.diff (695 B)

Event Timeline