X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fjson_server.cc;h=3f43a75eb8ee332a53d0a1bac1cb0e2ecc6e1dd0;hb=715d87a4cf9e4697a2f67881776c19c4ce8af581;hp=e171a630700252cb1377277e55ff6851c3f891df;hpb=73654117144c6de0ec4efe39ddc88485df546cc9;p=dcpomatic.git diff --git a/src/lib/json_server.cc b/src/lib/json_server.cc index e171a6307..3f43a75eb 100644 --- a/src/lib/json_server.cc +++ b/src/lib/json_server.cc @@ -52,7 +52,10 @@ enum State { JSONServer::JSONServer (int port) { - new thread (boost::bind (&JSONServer::run, this, port)); + thread* t = new thread (boost::bind (&JSONServer::run, this, port)); +#ifdef DCPOMATIC_LINUX + pthread_setname_np (t->native_handle(), "json-server"); +#endif } void