diff options
author | davidxu <davidxu@FreeBSD.org> | 2003-01-07 06:56:43 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2003-01-07 06:56:43 +0000 |
commit | 4a33e2dc689503644b7bb2a07f995f09bc925aa7 (patch) | |
tree | 1208a6e837d2d8c48e37e5e02f9705883caeaed4 /sys/kern | |
parent | cf3d82de73d7ed2a53e1298e90c3d34290dc5eb5 (diff) | |
download | FreeBSD-src-4a33e2dc689503644b7bb2a07f995f09bc925aa7.zip FreeBSD-src-4a33e2dc689503644b7bb2a07f995f09bc925aa7.tar.gz |
Clear some KSE fields after kse mode was turned off.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_exec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index f8bf341..543bd6a 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -211,6 +211,9 @@ kern_execve(td, fname, argv, envv, mac_p) */ p->p_flag &= ~P_KSES; td->td_flags &= ~TDF_UNBOUND; + td->td_mailbox = NULL; + td->td_kse->ke_mailbox = NULL; + td->td_kse->ke_flags &= ~KEF_DOUPCALL; thread_single_end(); } p->p_flag |= P_INEXEC; |