From: John Spray Date: Fri, 15 Sep 2017 16:23:39 +0000 (-0400) Subject: mgr: set explicit thread name X-Git-Tag: v13.0.1~814^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=44dce0a5664639b2ae0949cc434f1be1176d872d;p=ceph.git mgr: set explicit thread name This gets used as our process name in some situations when respawning. This is the same as what commit 4f177bb6b did for the MDS. Fixes: http://tracker.ceph.com/issues/21404 Signed-off-by: John Spray --- diff --git a/src/ceph_mgr.cc b/src/ceph_mgr.cc index 91043f6e8162..5e8f6798e392 100644 --- a/src/ceph_mgr.cc +++ b/src/ceph_mgr.cc @@ -16,7 +16,10 @@ #include +#include + #include "include/types.h" +#include "include/compat.h" #include "common/config.h" #include "common/ceph_argparse.h" #include "common/errno.h" @@ -38,6 +41,8 @@ static void usage() */ int main(int argc, const char **argv) { + ceph_pthread_setname(pthread_self(), "ceph-mgr"); + vector args; argv_to_vec(argc, argv, args); env_to_vec(args);