commit | 59666802fba592a59f2f4ea4dcb053287fd55826 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Tue Feb 15 02:20:21 2011 -0500 |
committer | Rich Felker <dalias@aerifal.cx> | Tue Feb 15 02:20:21 2011 -0500 |
tree | d0e19e99d68afd81d2bf5669585f137c7436fca7 | |
parent | 1355fdca7cb923c93f9011d8e9dcf49e1a67e537 [diff] [blame] |
make pthread_create return EAGAIN on resource failure, as required by POSIX
diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c index 72d7acb..d01be55 100644 --- a/src/thread/pthread_create.c +++ b/src/thread/pthread_create.c
@@ -212,7 +212,7 @@ if (ret < 0) { a_dec(&libc.threads_minus_1); munmap(map, size); - return -ret; + return EAGAIN; } *res = new; return 0;