Skip to content
Snippets Groups Projects
Commit 06a60c4f authored by Roger Dingledine's avatar Roger Dingledine
Browse files

use the real socketpair if we've got it

now it's just windows that has to use the kludged one


svn:r1675
parent a3200f79
Branches
Tags
No related merge requests found
......@@ -837,10 +837,14 @@ void spawn_exit()
int
tor_socketpair(int family, int type, int protocol, int fd[2])
{
#ifdef HAVE_SOCKETPAIR_XXXX
/* For testing purposes, we never fall back to real socketpairs. */
#ifdef HAVE_SOCKETPAIR
return socketpair(family, type, protocol, fd);
#else
/* This socketpair does not work when localhost is down. So
* it's really not the same thing at all. But it's close enough
* for now, and really, when localhost is down sometimes, we
* have other problems too.
*/
int listener = -1;
int connector = -1;
int acceptor = -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment