Explorar o código

Use correct errno from libevent on win32

svn:r4327
Nick Mathewson %!s(int64=20) %!d(string=hai) anos
pai
achega
2118e5798a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/or/main.c

+ 1 - 1
src/or/main.c

@@ -941,7 +941,7 @@ static int do_main_loop(void) {
 
     /* let catch() handle things like ^c, and otherwise don't worry about it */
     if (loop_result < 0) {
-      int e = errno;
+      int e = tor_socket_errno(-1);
       /* let the program survive things like ^z */
       if (e != EINTR && !ERRNO_IS_EINPROGRESS(e)) {
 #ifdef HAVE_EVENT_GET_METHOD