rtkit: use _gettid() instead of getpid() in fallback

This commit is contained in:
Wim Taymans 2021-07-20 17:13:26 +02:00
parent 9160a127b5
commit a4b8bd6d52

View file

@ -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;