[tor-bugs] #2504 [Tor Client]: When locking a file on windows, EACCESS tells us we have it locked already, not EDEADLOCK

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Mon Feb 7 22:48:02 UTC 2011


#2504: When locking a file on windows, EACCESS tells us we have it locked already,
not EDEADLOCK
------------------------+---------------------------------------------------
 Reporter:  Sebastian   |       Owner:                    
     Type:  defect      |      Status:  new               
 Priority:  normal      |   Milestone:  Tor: 0.2.2.x-final
Component:  Tor Client  |     Version:                    
 Keywords:              |      Points:                    
   Parent:              |  
------------------------+---------------------------------------------------

Comment(by Sebastian):

 Trying this on a Windows 7, unfortunately I'm getting "Permission denied"
 when we're trying to non-blockingly lock a file we have locked before, and
 a "Resource deadlock avoided" error when trying to lock a file we've
 already locked blockingly (the errors are the same when some other process
 has the files locked); so it does unfortunately look like simply replacing
 EDEADLOCK with EACCES won't do. My next-best approach would be to say that
 if either EACCES or EDEADLOCK is returned we use the error case.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/2504#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list