diff options
Diffstat (limited to 'winsup/cygwin/pwdgrp.h')
-rw-r--r-- | winsup/cygwin/pwdgrp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/pwdgrp.h b/winsup/cygwin/pwdgrp.h index 73d41a097..51b489f7e 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 (); } |