core/dbus-manager: rephrase the comment for method_get_unit_processes a bit

This commit is contained in:
Mike Yuan
2024-04-14 23:22:13 +08:00
parent 8a70edc1f7
commit ad68a4e58a
+4 -3
View 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) {