mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 21:09:28 +00:00
Don't forget to turn off P_SINGLE_BOUNDARY for thread_single(SINGLE_EXIT),
otherwise a threaded process which calls execv() will hang in kernel and may can not be killed!
This commit is contained in:
parent
3eadb26df8
commit
cefe021b6c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137231
@ -880,7 +880,7 @@ thread_single(int mode)
|
||||
* process.
|
||||
*/
|
||||
p->p_singlethread = NULL;
|
||||
p->p_flag &= ~(P_STOPPED_SINGLE | P_SINGLE_EXIT);
|
||||
p->p_flag &= ~(P_STOPPED_SINGLE | P_SINGLE_EXIT | P_SINGLE_BOUNDARY);
|
||||
thread_unthread(td);
|
||||
}
|
||||
mtx_unlock_spin(&sched_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user