X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fpthread_create.c;h=917be54f2fb6d4c06bf3ebf9fffcd877af511cdd;hp=c3b65ae955ab2b3757a32cf4f1597b87fb669361;hb=7e4d79464adc3140b03f6e92a902d061c99b9ebe;hpb=f8e054f95197bf9c4463122fba3ebc586d4a99f6;ds=sidebyside diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c index c3b65ae9..917be54f 100644 --- a/src/thread/pthread_create.c +++ b/src/thread/pthread_create.c @@ -104,7 +104,7 @@ int pthread_create(pthread_t *res, const pthread_attr_t *attr, void *(*entry)(vo size = guard + ROUND(attr->_a_stacksize + DEFAULT_STACK_SIZE); } size += __pthread_tsd_size; - map = mmap(0, size, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0); + map = mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0); if (map == MAP_FAILED) return EAGAIN; if (guard) mprotect(map, guard, PROT_NONE);