summaryrefslogtreecommitdiff
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2003-02-01 12:17:09 +0000
committerJulian Elischer <julian@FreeBSD.org>2003-02-01 12:17:09 +0000
commit6f8132a867d53fbc48dd8222a4fd1408ff1d9226 (patch)
tree5ab8f2c0a0aaeb3da3779201a31e710dee48d388 /sys/kern/kern_exec.c
parent3c62126d846cbe05368a930cee2d63a314d45dd6 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index b6d77d2d975a..33a0764fc503 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -210,7 +210,10 @@ kern_execve(td, fname, argv, envv, mac_p)
* so unset the associated flags and lose KSE mode.
*/
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;