]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/dbus-manager: rephrase the comment for method_get_unit_processes a bit
authorMike Yuan <me@yhndnzj.com>
Sat, 13 Apr 2024 12:30:16 +0000 (20:30 +0800)
committerMike Yuan <me@yhndnzj.com>
Sun, 14 Apr 2024 15:22:13 +0000 (23:22 +0800)
src/core/dbus-manager.c

index 59a7f2bd356843e55f218453eac071af8c299cc6..7077d44723bbfe6a2e38547c118dff0f4748a2c5 100644 (file)
@@ -948,9 +948,10 @@ static int method_list_units_by_names(sd_bus_message *message, void *userdata, s
 }
 
 static int method_get_unit_processes(sd_bus_message *message, void *userdata, sd_bus_error *error) {
-        /* Don't load a unit (since it won't have any processes if it's not loaded), but don't insist on the
-         * unit being loaded (because even improperly loaded units might still have processes around */
-        return method_generic_unit_operation(message, userdata, error, bus_unit_method_get_processes, 0);
+        /* Don't load a unit actively (since it won't have any processes if it's not loaded), but don't
+         * insist on the unit being loaded either (because even improperly loaded units might still have
+         * processes around). */
+        return method_generic_unit_operation(message, userdata, error, bus_unit_method_get_processes, /* flags = */ 0);
 }
 
 static int method_attach_processes_to_unit(sd_bus_message *message, void *userdata, sd_bus_error *error) {