summaryrefslogtreecommitdiffstats
path: root/src/coredump
diff options
context:
space:
mode:
authorMichal Sekletar <msekleta@redhat.com>2024-09-09 18:28:13 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2024-10-30 13:20:40 +0100
commite5bad3a7b98a1d4c1bce63ec5c4185268e9812b7 (patch)
treec532572310ee9ff292b1c7553a60f56c223d2cb2 /src/coredump
parentcoredump: fix coding style (diff)
downloadsystemd-e5bad3a7b98a1d4c1bce63ec5c4185268e9812b7.tar.xz
systemd-e5bad3a7b98a1d4c1bce63ec5c4185268e9812b7.zip
coredump: use FORK_LOG to get more precise logging
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 70403e1221..0900689d04 100644
--- a/src/coredump/coredump.c
+++ b/src/coredump/coredump.c
@@ -1679,7 +1679,7 @@ static int gather_pid_mount_tree_fd(const Context *context) {
"(sd-mount-tree)",
/* except_fds= */ NULL,
/* n_except_fds= */ 0,
- FORK_RESET_SIGNALS|FORK_DEATHSIG_SIGKILL,
+ FORK_RESET_SIGNALS|FORK_DEATHSIG_SIGKILL|FORK_LOG,
/* pidns_fd= */ -EBADF,
mntns_fd,
/* netns_fd= */ -EBADF,
@@ -1687,7 +1687,7 @@ static int gather_pid_mount_tree_fd(const Context *context) {
root_fd,
&child);
if (r < 0)
- return log_error_errno(r, "Failed to fork(): %m");
+ return r;
if (r == 0) {
pair[0] = safe_close(pair[0]);