12345678910111213141516171819202122232425262728 |
- From a4b8bd6d5292c13c0e14db54d4b5819a2bbf066d Mon Sep 17 00:00:00 2001
- From: Wim Taymans <wtaymans@redhat.com>
- Date: Tue, 20 Jul 2021 17:13:26 +0200
- Subject: [PATCH] rtkit: use _gettid() instead of getpid() in fallback
- [Retrieved from:
- https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/a4b8bd6d5292c13c0e14db54d4b5819a2bbf066d]
- Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
- ---
- src/modules/module-rtkit.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
- diff --git a/src/modules/module-rtkit.c b/src/modules/module-rtkit.c
- index 419e4be81..1f13aa371 100644
- --- a/src/modules/module-rtkit.c
- +++ b/src/modules/module-rtkit.c
- @@ -592,7 +592,7 @@ static pid_t impl_gettid(struct impl *impl, pthread_t pt)
- if ((thr = find_thread_by_pt(impl, pt)) != NULL)
- pid = thr->pid;
- else
- - pid = getpid();
- + pid = _gettid();
- pthread_mutex_unlock(&impl->lock);
-
- return pid;
- --
- GitLab
|