mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
2003-09-24 Roland McGrath <roland@redhat.com>
* allocatestack.c (__make_stacks_executable): Don't ignore return value from _dl_make_stack_executable.
This commit is contained in:
parent
69c9fa045b
commit
0070086564
@ -687,21 +687,22 @@ __make_stacks_executable (void)
|
|||||||
/* Also change the permission for the currently unused stacks. This
|
/* Also change the permission for the currently unused stacks. This
|
||||||
might be wasted time but better spend it here than adding a check
|
might be wasted time but better spend it here than adding a check
|
||||||
in the fast path. */
|
in the fast path. */
|
||||||
list_for_each (runp, &stack_cache)
|
if (err == 0)
|
||||||
{
|
list_for_each (runp, &stack_cache)
|
||||||
err = change_stack_perm (list_entry (runp, struct pthread, list)
|
{
|
||||||
|
err = change_stack_perm (list_entry (runp, struct pthread, list)
|
||||||
#ifdef NEED_SEPARATE_REGISTER_STACK
|
#ifdef NEED_SEPARATE_REGISTER_STACK
|
||||||
, pagemask
|
, pagemask
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
if (err != 0)
|
if (err != 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
lll_unlock (stack_cache_lock);
|
lll_unlock (stack_cache_lock);
|
||||||
|
|
||||||
if (err == 0)
|
if (err == 0)
|
||||||
_dl_make_stack_executable ();
|
err = _dl_make_stack_executable ();
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user