mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Fix handling of cancellation and failung pthread_mutex_unlock call. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. * Makefile (tests): Add tst-cond8 and tst-cond9. * tst-cond8.c: New file. * tst-cond9.c: New file.
This commit is contained in:
@ -465,8 +465,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
|
||||
0))
|
||||
{
|
||||
/* The old guard area is too large. */
|
||||
if (mprotect ((char *) mem + guardsize,
|
||||
pd->guardsize - guardsize,
|
||||
if (mprotect ((char *) mem + guardsize, pd->guardsize - guardsize,
|
||||
PROT_READ | PROT_WRITE | PROT_EXEC) != 0)
|
||||
goto mprot_error;
|
||||
|
||||
|
Reference in New Issue
Block a user