diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-10-30 10:29:43 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-11-07 07:28:43 -0500 |
commit | 52c0ab4af3ec152c4b78669acf8877ca27d66097 (patch) | |
tree | e8dc14ad0834731fd746bc22d462aae1db18ed3b /src/app/config/config.c | |
parent | 7ac4f9d5ec1b31a0d4b76ab62c1afc039c8fe627 (diff) | |
download | tor-52c0ab4af3ec152c4b78669acf8877ca27d66097.tar.gz tor-52c0ab4af3ec152c4b78669acf8877ca27d66097.zip |
Add subsys functions for receiving/flushing states and options.
These functions are in the subsystem, not in the config_format_t,
since they are about how the format is _used_, not about _what it
is_.
Diffstat (limited to 'src/app/config/config.c')
-rw-r--r-- | src/app/config/config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c index 7317a5d2f1..8929349709 100644 --- a/src/app/config/config.c +++ b/src/app/config/config.c @@ -987,7 +987,8 @@ set_options(or_options_t *new_val, char **msg) global_options = old_options; return -1; } - if (options_act(old_options) < 0) { /* acting on the options failed. die. */ + if (subsystems_set_options(get_options_mgr(), new_val) < 0 || + options_act(old_options) < 0) { /* acting on the options failed. die. */ if (! tor_event_loop_shutdown_is_pending()) { log_err(LD_BUG, "Acting on config options left us in a broken state. Dying."); |