mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Exit immediately if we can't monitor our owning controller process
tor_process_monitor_new can't currently return NULL, but if it ever can, we want that to be an explicitly fatal error, without relying on the fact that monitor_owning_controller_process's chain of caller will exit if it fails.
This commit is contained in:
+1
-4
@@ -1232,10 +1232,7 @@ options_act(or_options_t *old_options)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (monitor_owning_controller_process(options->OwningControllerProcess)) {
|
||||
log_warn(LD_CONFIG, "Error monitoring owning controller process");
|
||||
return -1;
|
||||
}
|
||||
monitor_owning_controller_process(options->OwningControllerProcess);
|
||||
|
||||
/* reload keys as needed for rendezvous services. */
|
||||
if (rend_service_load_keys()<0) {
|
||||
|
||||
Reference in New Issue
Block a user