Merge branch 'push-kyuwstornpno' into 'master'

wp/log: only call gettid() on linux

See merge request pipewire/wireplumber!806
This commit is contained in:
Siva Mahadevan 2026-04-17 20:21:17 +00:00
commit 7351643986

View file

@ -777,7 +777,12 @@ wp_log_fields_write_to_journal (WpLogFields *lf)
g_autofree gchar *full_message = NULL;
const gchar *message = lf->message ? lf->message : "";
g_autofree gchar *pid = g_strdup_printf("%d", getpid());
g_autofree gchar *tid = g_strdup_printf("%d", gettid());
#ifdef __linux__
pid_t tid_val = gettid();
#else
pid_t tid_val = -1;
#endif
g_autofree gchar *tid = g_strdup_printf("%d", tid_val);
#ifdef HAS_SHORT_NAME
const gchar *syslog_identifier = program_invocation_short_name;
#else