make workers explain their death better when tor dies

and make them say it at log level info rather than err


svn:r1232
This commit is contained in:
Roger Dingledine
2004-03-04 21:26:23 +00:00
parent 8fe504fee6
commit 01e06148a1
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -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);
+2 -1
View File
@@ -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);