Eric Andersen 23 жил өмнө
parent
commit
6f1e6c22ab
1 өөрчлөгдсөн 3 нэмэгдсэн , 4 устгасан
  1. 3 4
      libc/stdlib/setenv.c

+ 3 - 4
libc/stdlib/setenv.c

@@ -27,11 +27,10 @@
 #include <unistd.h>
 
 #ifdef __UCLIBC_HAS_THREADS__
-/* protects against simultaneous modifications of `environ'.  */
 #include <pthread.h>
-static pthread_mutex_t envlock = PTHREAD_MUTEX_INITIALIZER;
-# define LOCK	pthread_mutex_lock(&envlock)
-# define UNLOCK	pthread_mutex_unlock(&envlock);
+static pthread_mutex_t mylock = PTHREAD_MUTEX_INITIALIZER;
+# define LOCK	pthread_mutex_lock(&mylock)
+# define UNLOCK	pthread_mutex_unlock(&mylock);
 #else
 # define LOCK
 # define UNLOCK