Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152006197
D54234.id168164.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
695 B
Referenced Files
None
Subscribers
None
D54234.id168164.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D54234: proc_dtor(): style improvements
Attached
Detach File
Event Timeline
Log In to Comment