summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/thread/pthread_create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c
index 72d7acbc..d01be551 100644
--- a/src/thread/pthread_create.c
+++ b/src/thread/pthread_create.c
@@ -212,7 +212,7 @@ int pthread_create(pthread_t *res, const pthread_attr_t *attr, void *(*entry)(vo
if (ret < 0) {
a_dec(&libc.threads_minus_1);
munmap(map, size);
- return -ret;
+ return EAGAIN;
}
*res = new;
return 0;