]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: comment verbosely what the difference betweem set_manager_settings() and set_ma...
authorLennart Poettering <lennart@poettering.net>
Tue, 5 Jun 2018 14:06:19 +0000 (16:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 6 Jun 2018 12:39:15 +0000 (14:39 +0200)
src/core/main.c

index 86a2f43824f696e1d1aeba989b74ad0c6b5dc700..258ec0e56fd01249888e581d29669d0bd7b6bd75 100644 (file)
@@ -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;