Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142559418
D16210.id45124.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16210.id45124.diff
View Options
Index: sys/kern/kern_exit.c
===================================================================
--- sys/kern/kern_exit.c
+++ sys/kern/kern_exit.c
@@ -645,6 +645,11 @@
wakeup(p->p_pptr);
cv_broadcast(&p->p_pwait);
sched_exit(p->p_pptr, td);
+
+#ifdef AUDIT
+ AUDIT_SYSCALL_EXIT(0, td);
+#endif
+
PROC_SLOCK(p);
p->p_state = PRS_ZOMBIE;
PROC_UNLOCK(p->p_pptr);
Index: sys/kern/kern_thr.c
===================================================================
--- sys/kern/kern_thr.c
+++ sys/kern/kern_thr.c
@@ -374,6 +374,11 @@
KASSERT(p->p_numthreads > 1, ("too few threads"));
racct_sub(p, RACCT_NTHR, 1);
tdsigcleanup(td);
+
+#ifdef AUDIT
+ AUDIT_SYSCALL_EXIT(0, td);
+#endif
+
PROC_SLOCK(p);
thread_stopped(p);
thread_exit();
Index: sys/kern/kern_thread.c
===================================================================
--- sys/kern/kern_thread.c
+++ sys/kern/kern_thread.c
@@ -532,9 +532,6 @@
SDT_PROBE0(proc, , , lwp__exit);
KASSERT(TAILQ_EMPTY(&td->td_sigqueue.sq_list), ("signal pending"));
-#ifdef AUDIT
- AUDIT_SYSCALL_EXIT(0, td);
-#endif
/*
* drop FPU & debug register state storage, or any other
* architecture specific resources that
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 22, 12:14 AM (13 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27824381
Default Alt Text
D16210.id45124.diff (1 KB)
Attached To
Mode
D16210: Don't acquire evclass_lock with a spinlock held
Attached
Detach File
Event Timeline
Log In to Comment