[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] make workers explain their death better when tor dies



Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	cpuworker.c dns.c 
Log Message:
make workers explain their death better when tor dies
and make them say it at log level info rather than err


Index: cpuworker.c
===================================================================
RCS file: /home/or/cvsroot/src/or/cpuworker.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- cpuworker.c	2 Mar 2004 17:48:16 -0000	1.23
+++ cpuworker.c	4 Mar 2004 21:26:23 -0000	1.24
@@ -133,7 +133,8 @@
   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);

Index: dns.c
===================================================================
RCS file: /home/or/cvsroot/src/or/dns.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- dns.c	4 Mar 2004 20:49:38 -0000	1.62
+++ dns.c	4 Mar 2004 21:26:23 -0000	1.63
@@ -398,7 +398,8 @@
   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);