mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Use correct errno from libevent on win32
svn:r4327
This commit is contained in:
parent
1d9bc936c2
commit
2118e5798a
@ -941,7 +941,7 @@ static int do_main_loop(void) {
|
|||||||
|
|
||||||
/* let catch() handle things like ^c, and otherwise don't worry about it */
|
/* let catch() handle things like ^c, and otherwise don't worry about it */
|
||||||
if (loop_result < 0) {
|
if (loop_result < 0) {
|
||||||
int e = errno;
|
int e = tor_socket_errno(-1);
|
||||||
/* let the program survive things like ^z */
|
/* let the program survive things like ^z */
|
||||||
if (e != EINTR && !ERRNO_IS_EINPROGRESS(e)) {
|
if (e != EINTR && !ERRNO_IS_EINPROGRESS(e)) {
|
||||||
#ifdef HAVE_EVENT_GET_METHOD
|
#ifdef HAVE_EVENT_GET_METHOD
|
||||||
|
Loading…
Reference in New Issue
Block a user