[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Use correct errno from libevent on win32



Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv20160/src/or

Modified Files:
	main.c 
Log Message:
Use correct errno from libevent on win32

Index: main.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/main.c,v
retrieving revision 1.508
retrieving revision 1.509
diff -u -d -r1.508 -r1.509
--- main.c	6 Jun 2005 20:06:10 -0000	1.508
+++ main.c	7 Jun 2005 17:32:33 -0000	1.509
@@ -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