summaryrefslogtreecommitdiff
path: root/palsa.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-22 19:35:48 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-22 19:35:48 +0200
commitc4645c4495bd745cee9f7e20b0a4d15bc52e98b9 (patch)
tree54b3b4cbafad32e535a459815b3e8688b10e60f7 /palsa.c
parentf1aa2ed080d9976915b88c5d1777efc1b8223828 (diff)
added thread name setting; fixed some commandline issues
Diffstat (limited to 'palsa.c')
-rw-r--r--palsa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/palsa.c b/palsa.c
index c5611d7c..9aedee80 100644
--- a/palsa.c
+++ b/palsa.c
@@ -19,6 +19,7 @@
#include <alsa/asoundlib.h>
#include <stdint.h>
#include <unistd.h>
+#include <sys/prctl.h>
#include "palsa.h"
#include "threading.h"
#include "streamer.h"
@@ -277,6 +278,7 @@ palsa_get_rate (void) {
static void
palsa_thread (uintptr_t context) {
+ prctl (PR_SET_NAME, "deadbeef-alsa", 0, 0, 0, 0);
int err;
for (;;) {
if (alsa_terminate) {