Skip to content

Commit

Permalink
mgr: set explicit thread name
Browse files Browse the repository at this point in the history
This gets used as our process name in some situations
when respawning.  This is the same as what commit 4f177bb
did for the MDS.

Fixes: http://tracker.ceph.com/issues/21404
Signed-off-by: John Spray <john.spray@redhat.com>
  • Loading branch information
John Spray committed Sep 15, 2017
1 parent 628a53f commit 8781a5b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ceph_mgr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@

#include <Python.h>

#include <pthread.h>

#include "include/types.h"
#include "include/compat.h"
#include "common/config.h"
#include "common/ceph_argparse.h"
#include "common/errno.h"
Expand All @@ -38,6 +41,8 @@ static void usage()
*/
int main(int argc, const char **argv)
{
ceph_pthread_setname(pthread_self(), "ceph-mgr");

vector<const char*> args;
argv_to_vec(argc, argv, args);
env_to_vec(args);
Expand Down

0 comments on commit 8781a5b

Please sign in to comment.