kthread: Don't make the stack executable by default.

This commit is contained in:
Alexandre Julliard 2006-12-05 15:42:53 +01:00
parent 822be6c90f
commit 338fc52491

View file

@ -237,8 +237,7 @@ static int create_thread( struct wine_pthread_thread_info *info )
{ {
if (!info->stack_base) if (!info->stack_base)
{ {
info->stack_base = wine_anon_mmap( NULL, info->stack_size, info->stack_base = wine_anon_mmap( NULL, info->stack_size, PROT_READ | PROT_WRITE, 0 );
PROT_READ | PROT_WRITE | PROT_EXEC, 0 );
if (info->stack_base == (void *)-1) return -1; if (info->stack_base == (void *)-1) return -1;
} }
#ifdef HAVE_CLONE #ifdef HAVE_CLONE