aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/pwdgrp.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/pwdgrp.h')
-rw-r--r--winsup/cygwin/pwdgrp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/pwdgrp.h b/winsup/cygwin/pwdgrp.h
index 73d41a0..51b489f 100644
--- a/winsup/cygwin/pwdgrp.h
+++ b/winsup/cygwin/pwdgrp.h
@@ -71,9 +71,9 @@ public:
{
if (!check && initialized)
return;
- pglock->acquire ();
- if (!initialized || (check && etc::file_changed (etc_ix)))
- (this->*read) ();
+ if (pglock->acquire () == 1 &&
+ (!initialized || (check && etc::file_changed (etc_ix))))
+ (this->*read) ();
pglock->release ();
}