diff options
Diffstat (limited to 'src/rmd_threads.c')
-rw-r--r-- | src/rmd_threads.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rmd_threads.c b/src/rmd_threads.c index cb81f84..69b98bf 100644 --- a/src/rmd_threads.c +++ b/src/rmd_threads.c @@ -43,6 +43,7 @@ #include <stdio.h> #include <stdlib.h> +#include <sys/prctl.h> #include <unistd.h> void rmdThreads(ProgData *pdata) { @@ -167,3 +168,7 @@ void rmdThreads(ProgData *pdata) { pdata->timer_alive = 0; pthread_join(timer_t,NULL); } + +void rmdThreadsSetName(const char *name) { + prctl(PR_SET_NAME, (unsigned long)name, 0, 0, 0); +} |