Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ZerXes
Tor
Commits
02ec2cdb
Commit
02ec2cdb
authored
Nov 30, 2003
by
Roger Dingledine
Browse files
bugfix: we were writing to stderr even when it's closed
svn:r868
parent
2de4fc2b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/or/connection.c
View file @
02ec2cdb
...
...
@@ -272,8 +272,7 @@ int connection_connect(connection_t *conn, char *address, uint32_t addr, uint16_
if
(
connect
(
s
,(
struct
sockaddr
*
)
&
dest_addr
,
sizeof
(
dest_addr
))
<
0
)
{
if
(
!
ERRNO_CONN_EINPROGRESS
(
errno
))
{
/* yuck. kill it. */
perror
(
"connect"
);
log_fn
(
LOG_INFO
,
"Connect() to %s:%u failed."
,
address
,
port
);
log_fn
(
LOG_INFO
,
"Connect() to %s:%u failed: %s"
,
address
,
port
,
strerror
(
errno
));
close
(
s
);
return
-
1
;
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment