(lwpInitContext) [UCONTEXT]: Failed to initialized uc_stack.ss_flags.
This commit is contained in:
parent
bb33660672
commit
ef79cd67ef
1 changed files with 1 additions and 2 deletions
|
@ -60,8 +60,7 @@ void
|
||||||
lwpInitContext(struct lwpProc *newp, stack_t *spp)
|
lwpInitContext(struct lwpProc *newp, stack_t *spp)
|
||||||
{
|
{
|
||||||
getcontext(&newp->context);
|
getcontext(&newp->context);
|
||||||
newp->context.uc_stack.ss_sp = spp->ss_sp;
|
newp->context.uc_stack = *spp;
|
||||||
newp->context.uc_stack.ss_size = spp->ss_size;
|
|
||||||
newp->context.uc_link = NULL;
|
newp->context.uc_link = NULL;
|
||||||
makecontext(&newp->context, lwpEntryPoint, 0);
|
makecontext(&newp->context, lwpEntryPoint, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue