0003-rtkit-use-_gettid-instead-of-getpid-in-fallback.patch 913 B

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