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:
David Xu 2004-11-04 22:13:16 +00:00
parent 3eadb26df8
commit cefe021b6c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137231

View File

@ -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);