mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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:
+2
-1
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user