[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] backport: Use correct errno from libevent on win32
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv20275/src/or
Modified Files:
Tag: tor-0_1_0-patches
main.c
Log Message:
backport: Use correct errno from libevent on win32
Index: main.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/main.c,v
retrieving revision 1.505.2.1
retrieving revision 1.505.2.2
diff -u -d -r1.505.2.1 -r1.505.2.2
--- main.c 6 Jun 2005 20:10:02 -0000 1.505.2.1
+++ main.c 7 Jun 2005 17:34:40 -0000 1.505.2.2
@@ -941,7 +941,7 @@
/* 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