mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-24 03:27:46 -05:00
@@ -47,6 +47,7 @@
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
# include <netinet/in.h>
|
||||
# include <pthread_np.h>
|
||||
#endif
|
||||
|
||||
#include "logger.h"
|
||||
@@ -4919,6 +4920,12 @@ int mpd_init(void)
|
||||
goto thread_fail;
|
||||
}
|
||||
|
||||
#if defined(__linux__)
|
||||
pthread_setname_np(tid_mpd, "mpd");
|
||||
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
pthread_set_name_np(tid_mpd, "mpd");
|
||||
#endif
|
||||
|
||||
idle_clients = NULL;
|
||||
listener_add(mpd_listener_cb, LISTENER_PLAYER | LISTENER_PLAYLIST | LISTENER_VOLUME | LISTENER_SPEAKER | LISTENER_OPTIONS);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user