From: Mike Yuan Date: Tue, 4 Mar 2025 17:41:23 +0000 (+0100) Subject: sd-journal/journal-send: use is_main_thread() where appropriate X-Git-Tag: v258-rc1~1185^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2f9b82724a1f9c0d70068c431a372866523d9ff;p=thirdparty%2Fsystemd.git sd-journal/journal-send: use is_main_thread() where appropriate --- diff --git a/src/libsystemd/sd-journal/journal-send.c b/src/libsystemd/sd-journal/journal-send.c index 93f9fc9df02..d55ca86b18d 100644 --- a/src/libsystemd/sd-journal/journal-send.c +++ b/src/libsystemd/sd-journal/journal-send.c @@ -88,7 +88,7 @@ void close_journal_fd(void) { if (!RUNNING_ON_VALGRIND) return; - if (getpid_cached() != gettid()) + if (!is_main_thread()) return; if (fd_plus_one <= 0)