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 dac4475..44f5e75 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -266,6 +266,9 @@ kern_execve(td, fname, argv, envv, mac_p) */ p->p_flag &= ~P_SA; td->td_mailbox = NULL; + mtx_lock_spin(&sched_lock); + td->td_flags &= ~TDF_SA; + mtx_unlock_spin(&sched_lock); thread_single_end(); } p->p_flag |= P_INEXEC; |