diff options
author | waker <wakeroid@gmail.com> | 2012-11-30 21:14:25 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-11-30 21:14:25 +0100 |
commit | 907ed40fd1b1a1298e5d339f51e68df5f0b63872 (patch) | |
tree | b8802e5191a621b11c108ee322db00407b03ab23 /plugins/artwork | |
parent | be472188fde7aa235c426486c42ae4e2278c9093 (diff) |
few minor optimizations
Diffstat (limited to 'plugins/artwork')
-rw-r--r-- | plugins/artwork/artwork.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/artwork/artwork.c b/plugins/artwork/artwork.c index 3ef62755..74fdcc10 100644 --- a/plugins/artwork/artwork.c +++ b/plugins/artwork/artwork.c @@ -5,6 +5,9 @@ #include <stdlib.h> #include <string.h> #include <sys/stat.h> +#ifdef __linux__ +#include <sys/prctl.h> +#endif #include <errno.h> #include <dirent.h> #include <unistd.h> @@ -799,6 +802,9 @@ id3v2_skip_str (int enc, uint8_t *ptr, uint8_t *end) { static void fetcher_thread (void *none) { +#ifdef __linux__ + prctl (PR_SET_NAME, "deadbeef-artwork", 0, 0, 0, 0); +#endif for (;;) { trace ("artwork: waiting for signal\n"); deadbeef->cond_wait (cond, mutex); |