From: Lennart Poettering Date: Tue, 5 Jun 2018 14:06:19 +0000 (+0200) Subject: core: comment verbosely what the difference betweem set_manager_settings() and set_ma... X-Git-Tag: v239~134^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b65ae15d295d393a3cc01edf4aae9538642360f;p=thirdparty%2Fsystemd.git core: comment verbosely what the difference betweem set_manager_settings() and set_manager_defaults() is --- diff --git a/src/core/main.c b/src/core/main.c index 86a2f43824f..258ec0e56fd 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -311,6 +311,7 @@ static int parse_confirm_spawn(const char *value, char **console) { s = strjoin("/dev/", value); if (!s) return -ENOMEM; + *console = s; return 0; } @@ -731,6 +732,10 @@ static void set_manager_defaults(Manager *m) { assert(m); + /* Propagates the various default unit property settings into the manager object, i.e. properties that do not + * affect the manager itself, but are just what newly allocated units will have set if they haven't set + * anything else. (Also see set_manager_settings() for the settings that affect the manager's own behaviour) */ + m->default_timer_accuracy_usec = arg_default_timer_accuracy_usec; m->default_std_output = arg_default_std_output; m->default_std_error = arg_default_std_error; @@ -755,6 +760,9 @@ static void set_manager_settings(Manager *m) { assert(m); + /* Propagates the various manager settings into the manager object, i.e. properties that effect the manager + * itself (as opposed to just being inherited into newly allocated units, see set_manager_defaults() above). */ + m->confirm_spawn = arg_confirm_spawn; m->service_watchdogs = arg_service_watchdogs; m->runtime_watchdog = arg_runtime_watchdog;