Explorar el Código

make workers explain their death better when tor dies
and make them say it at log level info rather than err


svn:r1232

Roger Dingledine hace 21 años
padre
commit
01e06148a1
Se han modificado 2 ficheros con 4 adiciones y 2 borrados
  1. 2 1
      src/or/cpuworker.c
  2. 2 1
      src/or/dns.c

+ 2 - 1
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);

+ 2 - 1
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);