From 7fd3995282db788e33f1bfd7eea95b480d45c804 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 3 Apr 2011 16:15:15 -0400 Subject: [PATCH] pthread_create need not set errno --- src/thread/pthread_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c index cdf36ff2..284b45a0 100644 --- a/src/thread/pthread_create.c +++ b/src/thread/pthread_create.c @@ -195,7 +195,7 @@ int pthread_create(pthread_t *res, const pthread_attr_t *attr, void *(*entry)(vo unsigned char *map, *stack, *tsd; static const pthread_attr_t default_attr; - if (!self) return errno = ENOSYS; + if (!self) return ENOSYS; if (!init && ++init) init_threads(); if (!attr) attr = &default_attr;