* grp.cc (read_etc_group): Don't copy mutex on fork.
* pwd.cc (read_etc_passwd): Ditto. * autoload.cc (LoadDLLfuncEx): Use LoadDLLprime to initialize DLL specific area.
This commit is contained in:
		| @@ -140,7 +140,7 @@ read_etc_group () | ||||
|  | ||||
|   strncpy (group_name, "Administrators", sizeof (group_name)); | ||||
|  | ||||
|   static pthread_mutex_t etc_group_mutex = (pthread_mutex_t) PTHREAD_MUTEX_INITIALIZER; | ||||
|   static NO_COPY pthread_mutex_t etc_group_mutex = (pthread_mutex_t) PTHREAD_MUTEX_INITIALIZER; | ||||
|   pthread_mutex_lock (&etc_group_mutex); | ||||
|  | ||||
|   /* if we got blocked by the mutex, then etc_group may have been processed */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user