diff options
Diffstat (limited to 'src/lib/json_server.cc')
| -rw-r--r-- | src/lib/json_server.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
