If _libkse_debug is not zero, activate thread mode.
This commit is contained in:
parent
566382df0a
commit
099e4630c1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132121
@ -310,6 +310,12 @@ _libpthread_init(struct pthread *curthread)
|
||||
|
||||
_thr_signal_init();
|
||||
_kse_critical_leave(&_thr_initial->tcb->tcb_tmbx);
|
||||
/*
|
||||
* activate threaded mode as soon as possible if we are
|
||||
* being debugged
|
||||
*/
|
||||
if (_libkse_debug)
|
||||
_kse_setthreaded(1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -310,6 +310,12 @@ _libpthread_init(struct pthread *curthread)
|
||||
|
||||
_thr_signal_init();
|
||||
_kse_critical_leave(&_thr_initial->tcb->tcb_tmbx);
|
||||
/*
|
||||
* activate threaded mode as soon as possible if we are
|
||||
* being debugged
|
||||
*/
|
||||
if (_libkse_debug)
|
||||
_kse_setthreaded(1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user