[Date Prev][Date Next]
(ITS#7361) alock is broken on Windows
Full_Name: Howard Chu
Submission from: (NULL) (126.96.36.199)
Submitted by: hyc
alock assumes (wrongly) that it can always read from a locked region. That's
true for POSIX advisory locks, but Windows locks are mandatory. I.e., attempting
to read from a region with a write lock returns EACCES.
Because alock doesn't detect this situation correctly, it will end up waiting
forever to acquire a lock on a region that's already locked. (E.g., if slapd is
already running and slapcat is started, slapcat will hang trying to get the
A fix is coming shortly.