diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-10-08 13:26:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-08 13:26:59 +0200 |
commit | ac42b151f8107802d77a150d0ef50964a8a4245a (patch) | |
tree | 1c6f03d705c67c176c38c27d4d1939f977776d4d /src/systemctl | |
parent | Merge pull request #34669 from bluca/semaphore (diff) | |
parent | Add ExtraFileDescriptor property to StartTransientUnit dbus API (diff) | |
download | systemd-ac42b151f8107802d77a150d0ef50964a8a4245a.tar.xz systemd-ac42b151f8107802d77a150d0ef50964a8a4245a.zip |
Merge pull request #34556 from ryantimwilson/extra-fds
Add ExtraFileDescriptor property to StartTransientUnit dbus API
Diffstat (limited to 'src/systemctl')
-rw-r--r-- | src/systemctl/systemctl-show.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/systemctl/systemctl-show.c b/src/systemctl/systemctl-show.c index 0f954b89b3..6f3fd76622 100644 --- a/src/systemctl/systemctl-show.c +++ b/src/systemctl/systemctl-show.c @@ -2018,6 +2018,21 @@ static int print_property(const char *name, const char *expected_value, sd_bus_m return bus_log_parse_error(r); return 1; + } else if (streq(name, "ExtraFileDescriptorNames")) { + _cleanup_strv_free_ char **extra_fd_names = NULL; + _cleanup_free_ char *joined = NULL; + + r = sd_bus_message_read_strv(m, &extra_fd_names); + if (r < 0) + return bus_log_parse_error(r); + + joined = strv_join(extra_fd_names, " "); + if (!joined) + return log_oom(); + + bus_print_property_value(name, expected_value, flags, joined); + + return 1; } break; |