diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-06-07 17:32:33 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-06-07 17:32:33 +0000 |
commit | 2118e5798acc8b34ff4450c29717722b345a52cb (patch) | |
tree | df6edabaf38402991e1d5c0253abeb80a3d20775 /src/or | |
parent | 1d9bc936c2b1b3bd003fe3f3fdd56b6150ca3020 (diff) | |
download | tor-2118e5798acc8b34ff4450c29717722b345a52cb.tar.gz tor-2118e5798acc8b34ff4450c29717722b345a52cb.zip |
Use correct errno from libevent on win32
svn:r4327
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c index 973b29eee1..a812b725d0 100644 --- a/src/or/main.c +++ b/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 |