From e8efa7328e487806fb77d3ec54bf5fa5f8b017ed Mon Sep 17 00:00:00 2001 From: julian Date: Sat, 1 Feb 2003 12:17:09 +0000 Subject: Reversion of commit by Davidxu plus fixes since applied. I'm not convinced there is anything major wrong with the patch but them's the rules.. I am using my "David's mentor" hat to revert this as he's offline for a while. --- sys/kern/kern_exec.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/kern/kern_exec.c') diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index b6d77d2..33a0764 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; -- cgit v1.1