Locking failures on windows are indicated by EACCES
commit9c7e2cf010856aabfbca042870ec1d5718c30ea4
authorSebastian Hahn <sebastian@torproject.org>
Mon, 7 Feb 2011 14:40:14 +0000 (7 15:40 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Tue, 8 Feb 2011 17:35:07 +0000 (8 18:35 +0100)
tree3dd51067fe26a7738928c50014dbe5a9d662c059
parent54ccc80a4a740c175f279d00dc5441c673b0263c
Locking failures on windows are indicated by EACCES

Patch our implementation of tor_lockfile_lock() to handle this case
correctly. Also add a note that blocking behaviour differs from windows
to *nix. Fixes bug 2504, issue pointed out by mobmix.
src/common/compat.c