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:
Roland McGrath 2003-09-25 03:50:45 +00:00
parent 69c9fa045b
commit 0070086564

View File

@ -687,6 +687,7 @@ __make_stacks_executable (void)
/* Also change the permission for the currently unused stacks. This
might be wasted time but better spend it here than adding a check
in the fast path. */
if (err == 0)
list_for_each (runp, &stack_cache)
{
err = change_stack_perm (list_entry (runp, struct pthread, list)
@ -701,7 +702,7 @@ __make_stacks_executable (void)
lll_unlock (stack_cache_lock);
if (err == 0)
_dl_make_stack_executable ();
err = _dl_make_stack_executable ();
return err;
}