summaryrefslogtreecommitdiff
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2003-01-07 06:56:43 +0000
committerDavid Xu <davidxu@FreeBSD.org>2003-01-07 06:56:43 +0000
commit45f603e21c711a7ae5c4f90c027797a02bb3fd2f (patch)
tree1208a6e837d2d8c48e37e5e02f9705883caeaed4 /sys/kern/kern_exec.c
parent6398b9c017932accf766bc5ba38499b7026b8e60 (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 f8bf3416a835..543bd6aa2fcd 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;