fix possible fd leak via missing O_CLOEXEC in pthread_setname_np
[musl] / src / internal / libc.h
index c061485..619bba8 100644 (file)
@@ -18,9 +18,10 @@ struct tls_module {
 };
 
 struct __libc {
-       int can_do_threads;
-       int threaded;
-       int secure;
+       char can_do_threads;
+       char threaded;
+       char secure;
+       volatile signed char need_locks;
        int threads_minus_1;
        size_t *auxv;
        struct tls_module *tls_head;