diff options
Diffstat (limited to 'sys/kern/kern_exec.c')
-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; |