summaryrefslogtreecommitdiffstats
path: root/src/coredump
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-10-16 23:17:29 +0200
committerLennart Poettering <lennart@poettering.net>2023-10-18 14:39:33 +0200
commita034620f1ad300094c184ae857fe07a3183a8258 (patch)
tree961e007e81ac96b41932bc743b89c34958ff4751 /src/coredump
parentcgroup-show: use size_t for array sizes (diff)
downloadsystemd-a034620f1ad300094c184ae857fe07a3183a8258.tar.xz
systemd-a034620f1ad300094c184ae857fe07a3183a8258.zip
process-util: add pidref_get_cmdline()
Diffstat (limited to 'src/coredump')
-rw-r--r--src/coredump/coredump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c
index 12f84ef965..0c30219535 100644
--- a/src/coredump/coredump.c
+++ b/src/coredump/coredump.c
@@ -744,7 +744,7 @@ static int get_process_container_parent_cmdline(pid_t pid, char** cmdline) {
if (r < 0)
return r;
- r = get_process_cmdline(container_pid, SIZE_MAX, PROCESS_CMDLINE_QUOTE_POSIX, cmdline);
+ r = pid_get_cmdline(container_pid, SIZE_MAX, PROCESS_CMDLINE_QUOTE_POSIX, cmdline);
if (r < 0)
return r;
@@ -1251,7 +1251,7 @@ static int gather_pid_metadata_from_procfs(struct iovec_wrapper *iovw, Context *
if (sd_pid_get_slice(pid, &t) >= 0)
(void) iovw_put_string_field_free(iovw, "COREDUMP_SLICE=", t);
- if (get_process_cmdline(pid, SIZE_MAX, PROCESS_CMDLINE_QUOTE_POSIX, &t) >= 0)
+ if (pid_get_cmdline(pid, SIZE_MAX, PROCESS_CMDLINE_QUOTE_POSIX, &t) >= 0)
(void) iovw_put_string_field_free(iovw, "COREDUMP_CMDLINE=", t);
if (cg_pid_get_path_shifted(pid, NULL, &t) >= 0)