diff options
author | Christopher Faylor <me@cgf.cx> | 2001-05-19 05:29:00 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-05-19 05:29:00 +0000 |
commit | 87f0d5ad9948adab5c3adb2c1067509e94d39e5c (patch) | |
tree | 6c4cb98972a8ee8a2bd2ca2684bd0cfb91a7e17b /winsup/cygwin/grp.cc | |
parent | 0260054a8cf0ca8642994847e4c64156f0adc983 (diff) | |
download | cygnal-87f0d5ad9948adab5c3adb2c1067509e94d39e5c.tar.gz cygnal-87f0d5ad9948adab5c3adb2c1067509e94d39e5c.tar.bz2 cygnal-87f0d5ad9948adab5c3adb2c1067509e94d39e5c.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/grp.cc')
-rw-r--r-- | winsup/cygwin/grp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/grp.cc b/winsup/cygwin/grp.cc index d81521668..604f1a8d6 100644 --- a/winsup/cygwin/grp.cc +++ b/winsup/cygwin/grp.cc @@ -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 */ |