mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Merge remote branch 'origin/maint-0.2.2'
This commit is contained in:
commit
933ffd536d
5
changes/bug2504
Normal file
5
changes/bug2504
Normal file
@ -0,0 +1,5 @@
|
||||
o Minor bugfixes:
|
||||
- Fix a bug with our locking implementation on windows that couldn't
|
||||
correctly detect when a file was already locked. Fixes bug 2504,
|
||||
bugfix on 0.2.1.6-alpha.
|
||||
|
@ -728,7 +728,7 @@ tor_lockfile_lock(const char *filename, int blocking, int *locked_out)
|
||||
#ifdef WIN32
|
||||
_lseek(fd, 0, SEEK_SET);
|
||||
if (_locking(fd, blocking ? _LK_LOCK : _LK_NBLCK, 1) < 0) {
|
||||
if (errno != EACCESS && errno != EDEADLOCK)
|
||||
if (errno != EACCES && errno != EDEADLOCK)
|
||||
log_warn(LD_FS,"Couldn't lock \"%s\": %s", filename, strerror(errno));
|
||||
else
|
||||
*locked_out = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user