thread: name all threads so that the names appear in /proc/$PID/task/$TID/comm

This commit is contained in:
Lennart Poettering 2010-05-03 13:28:15 +02:00
parent 22f708a1ec
commit bc7314f14e
23 changed files with 80 additions and 28 deletions

View file

@ -307,7 +307,7 @@ int pa__init(pa_module*m) {
pollfd->fd = u->fd;
pollfd->events = pollfd->revents = 0;
if (!(u->thread = pa_thread_new(thread_func, u))) {
if (!(u->thread = pa_thread_new("pipe-sink", thread_func, u))) {
pa_log("Failed to create thread.");
goto fail;
}