diff options
author | Roger Dingledine <arma@torproject.org> | 2004-02-27 23:23:33 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-02-27 23:23:33 +0000 |
commit | 611f117ce1bfd8ed39be622f394e925bc13b8252 (patch) | |
tree | 687de53819e90e9f044c072d1b7df67faf683f33 /src/or/main.c | |
parent | c5bbb571d2a27d0b81bfe7a1d374ba965497f267 (diff) | |
download | tor-611f117ce1bfd8ed39be622f394e925bc13b8252.tar tor-611f117ce1bfd8ed39be622f394e925bc13b8252.tar.gz |
patches/answers to nick's commit
svn:r1146
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c index e68c2fe7d..c53d83d14 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -273,6 +273,9 @@ static void run_connection_housekeeping(int i, time_t now) { log_fn(LOG_INFO,"Expiring connection to %d (%s:%d).", i,conn->address, conn->port); connection_mark_for_close(conn,0); /* Suppress end ??? */ +/* XXX there's no concept of 'suppressing end' here, because it's an OR + * connection, and there's no such thing as an end cell for an OR + * connection. -RD */ } else { /* either a full router, or we've got a circuit. send a padding cell. */ log_fn(LOG_DEBUG,"Sending keepalive to (%s:%d)", @@ -543,7 +546,7 @@ static int do_main_loop(void) { /* let catch() handle things like ^c, and otherwise don't worry about it */ if(poll_result < 0) { if(errno != EINTR) { /* let the program survive things like ^z */ - log_fn(LOG_ERR,"poll failed."); + log_fn(LOG_ERR,"poll failed: %s",strerror(errno)); return -1; } else { log_fn(LOG_DEBUG,"poll interrupted."); |