summaryrefslogtreecommitdiffstats
path: root/src/systemctl
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-10-08 13:26:59 +0200
committerGitHub <noreply@github.com>2024-10-08 13:26:59 +0200
commitac42b151f8107802d77a150d0ef50964a8a4245a (patch)
tree1c6f03d705c67c176c38c27d4d1939f977776d4d /src/systemctl
parentMerge pull request #34669 from bluca/semaphore (diff)
parentAdd ExtraFileDescriptor property to StartTransientUnit dbus API (diff)
downloadsystemd-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.c15
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;