Browse Source

linuxthreads.old: pass back up saved_errno value in manager init

This matches the newer linuxthreads code, and fixes the build warning:

libpthread/linuxthreads.old/manager.c: In function 'pthread_handle_create':
libpthread/linuxthreads.old/manager.c:487:7: warning:
	variable 'saved_errno' set but not used [-Wunused-but-set-variable]

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger 12 years ago
parent
commit
84347a3c16
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libpthread/linuxthreads.old/manager.c

+ 1 - 1
libpthread/linuxthreads.old/manager.c

@@ -666,7 +666,7 @@ static int pthread_handle_create(pthread_t *thread, const pthread_attr_t *attr,
     __pthread_handles[sseg].h_descr = NULL;
     __pthread_handles[sseg].h_bottom = NULL;
     __pthread_handles_num--;
-    return errno;
+    return saved_errno;
   }
   PDEBUG("new thread pid = %d\n", pid);