summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-03-04 21:26:23 +0000
committerRoger Dingledine <arma@torproject.org>2004-03-04 21:26:23 +0000
commit01e06148a126b92be1f8d09f83c3b065f6927a46 (patch)
treedf014440bb6d9458bf7f1ac50f3438613c192f4f
parent8fe504fee63125082efa34e3790e88bde5b81f01 (diff)
downloadtor-01e06148a126b92be1f8d09f83c3b065f6927a46.tar.gz
tor-01e06148a126b92be1f8d09f83c3b065f6927a46.zip
make workers explain their death better when tor dies
and make them say it at log level info rather than err svn:r1232
-rw-r--r--src/or/cpuworker.c3
-rw-r--r--src/or/dns.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c
index e3395e0b17..2e80f72d43 100644
--- a/src/or/cpuworker.c
+++ b/src/or/cpuworker.c
@@ -133,7 +133,8 @@ int cpuworker_main(void *data) {
for(;;) {
if(read(fd, &question_type, 1) != 1) {
- log_fn(LOG_ERR,"read type failed. Exiting.");
+// log_fn(LOG_ERR,"read type failed. Exiting.");
+ log_fn(LOG_INFO,"cpuworker exiting because tor process died.");
spawn_exit();
}
assert(question_type == CPUWORKER_TASK_ONION);
diff --git a/src/or/dns.c b/src/or/dns.c
index 6fcacfc95b..4eed20d6ec 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -398,7 +398,8 @@ int dnsworker_main(void *data) {
for(;;) {
if(read(fd, &address_len, 1) != 1) {
- log_fn(LOG_INFO,"read length failed. Child exiting.");
+// log_fn(LOG_INFO,"read length failed. Child exiting.");
+ log_fn(LOG_INFO,"dnsworker exiting because tor process died.");
spawn_exit();
}
assert(address_len > 0);