summaryrefslogtreecommitdiff
path: root/src/test_trans.cc
diff options
context:
space:
mode:
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>2011-03-14 07:24:32 -0700
committerSage Weil <sage.weil@dreamhost.com>2011-03-14 15:45:05 -0700
commitdf8c00945f8ddb0553b74fe169af70b4e2d202b2 (patch)
tree1d6d6b6bb0a8ce42da91433e26adfa1cf0cd0a29 /src/test_trans.cc
parent448010f27ea767a3c810358b5a49c77e14e65787 (diff)
downloadceph-df8c00945f8ddb0553b74fe169af70b4e2d202b2.tar.gz
cfuse: set proper defaults
Since cfuse usually runs as a nonprivileged user, its defaults must be a little different from those of the other daemons. Add a flag to common_init which can be used to set unprivileged daemon defaults. SimpleMessenger::start() now just takes a boolean telling it whether to daemonize. It doesn't need to check global variables or other arguments; it just daemonizes if you tell it to; otherwise not. Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Diffstat (limited to 'src/test_trans.cc')
-rw-r--r--src/test_trans.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test_trans.cc b/src/test_trans.cc
index 706255efc27..263cef4a537 100644
--- a/src/test_trans.cc
+++ b/src/test_trans.cc
@@ -36,7 +36,7 @@ int main(int argc, const char **argv)
argv_to_vec(argc, argv, args);
env_to_vec(args);
- common_init(args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY);
+ common_init(args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY, 0);
// args
if (args.size() < 2) return -1;