diff options
author | Roger Dingledine <arma@torproject.org> | 2003-11-30 09:51:35 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-11-30 09:51:35 +0000 |
commit | 02ec2cdb34ab23b6d31894ee413d9d12fc6a8b8e (patch) | |
tree | fb898e1e0462fa6531d84f5e00a75d3e8a88be49 | |
parent | 2de4fc2b7fa595351bd413e12918eac6ad14bc44 (diff) | |
download | tor-02ec2cdb34ab23b6d31894ee413d9d12fc6a8b8e.tar.gz tor-02ec2cdb34ab23b6d31894ee413d9d12fc6a8b8e.zip |
bugfix: we were writing to stderr even when it's closed
svn:r868
-rw-r--r-- | src/or/connection.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 624a387a1f..138348e05e 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -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 { |