From: DaanDeMeyer Date: Thu, 3 Jul 2025 08:48:33 +0000 (+0200) Subject: fork-journal: Don't log if process is already gone in journal_terminate() X-Git-Tag: v258-rc1~61^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be3f7aaf44c5360404f95480d0c7eb74110a4cfb;p=thirdparty%2Fsystemd.git fork-journal: Don't log if process is already gone in journal_terminate() --- diff --git a/src/shared/fork-journal.c b/src/shared/fork-journal.c index 4fac8dead17..ec22a700613 100644 --- a/src/shared/fork-journal.c +++ b/src/shared/fork-journal.c @@ -196,7 +196,7 @@ void journal_terminate(PidRef *pidref) { return; r = pidref_kill(pidref, SIGTERM); - if (r < 0) + if (r < 0 && r != -ESRCH) log_debug_errno(r, "Failed to send SIGTERM to journalctl child " PID_FMT ", ignoring: %m", pidref->pid); (void) pidref_wait_for_terminate_and_check("journalctl", pidref, /* flags= */ 0);