mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Call thread_stopped in thr_exit to notify parent that the child process
is now fully stopped, this was already in kse_exit().
This commit is contained in:
parent
e35a02a97d
commit
71b7afb2b4
1 changed files with 1 additions and 0 deletions
|
|
@ -291,6 +291,7 @@ thr_exit(struct thread *td, struct thr_exit_args *uap)
|
|||
* call exit() in the trampoline when it returns.
|
||||
*/
|
||||
if (p->p_numthreads != 1) {
|
||||
thread_stopped(p);
|
||||
thread_exit();
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue