[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #7935 [Tor]: non-_WIN32 platforms don't consider EWOULDBLOCK in ERRNO_IS_EAGAIN()
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs