diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-04-13 14:30:16 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-04-14 17:22:13 +0200 |
commit | ad68a4e58a5b0794e031c48e91336c1f8a75c9e9 (patch) | |
tree | 5bccd556d9ebcd3ce68585e66f1d5bf38f55d71d /src/core/dbus-manager.c | |
parent | core/dbus-manager: add missing assertion (diff) | |
download | systemd-ad68a4e58a5b0794e031c48e91336c1f8a75c9e9.tar.xz systemd-ad68a4e58a5b0794e031c48e91336c1f8a75c9e9.zip |
core/dbus-manager: rephrase the comment for method_get_unit_processes a bit
Diffstat (limited to 'src/core/dbus-manager.c')
-rw-r--r-- | src/core/dbus-manager.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c index 59a7f2bd35..7077d44723 100644 --- a/src/core/dbus-manager.c +++ b/src/core/dbus-manager.c @@ -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) { |