[tor-bugs] #7935 [Tor]: non-_WIN32 platforms don't consider EWOULDBLOCK in ERRNO_IS_EAGAIN()

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Jan 11 17:05:10 UTC 2013


#7935: non-_WIN32 platforms don't consider EWOULDBLOCK in ERRNO_IS_EAGAIN()
------------------------+---------------------------------------------------
 Reporter:  asn         |          Owner:                    
     Type:  defect      |         Status:  new               
 Priority:  normal      |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor         |        Version:                    
 Keywords:  tor-client  |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------
 {{{
 #if defined(_WIN32)
 ...
 #define ERRNO_IS_EAGAIN(e)           ((e) == EAGAIN || (e) ==
 WSAEWOULDBLOCK)
 ...
 #else
 ...
 #define ERRNO_IS_EAGAIN(e)           ((e) == EAGAIN)
 }}}

 `EAGAIN` and `EWOULDBLOCK` have the same errno in most platforms, but
 there are some cases where it's not the same:
 http://stackoverflow.com/questions/7003234/which-systems-define-eagain-
 and-ewouldblock-as-different-values

 Reported by `oftc_must_be_destroyed`.

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


More information about the tor-bugs mailing list