diff options
author | dengg <dengg@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-10-18 16:20:07 +0000 |
---|---|---|
committer | dengg <dengg@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-10-18 16:20:07 +0000 |
commit | ab77e89b41201bfcaff8abca471d3b9e38dee918 (patch) | |
tree | 3503853e3f2d63d1097fdaf3cd8620a79b15ab4f | |
parent | fdf541a7885929fe0c5f4061eb138a3e2a39e4f6 (diff) | |
download | ATCD-ab77e89b41201bfcaff8abca471d3b9e38dee918.tar.gz |
-rw-r--r-- | DAnCE/NodeManager/Node_Manager.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/DAnCE/NodeManager/Node_Manager.cpp b/DAnCE/NodeManager/Node_Manager.cpp index 660c481cbdc..d2257e6ddc1 100644 --- a/DAnCE/NodeManager/Node_Manager.cpp +++ b/DAnCE/NodeManager/Node_Manager.cpp @@ -13,16 +13,15 @@ #include "ciao/CIAO_common.h" const char *ior_file_name_ = "nodedaemon.ior"; -char *default_svcconf_ = 0; -char *svcconf_config_ = 0; char *nodeapp_location_ = 0; -const char *nodeapp_options_ = 0; const char *pid_file_name_ = 0; int write_to_ior_ = 0; int register_with_ns_ = 0; int nodeapp_loc_ = 0; int spawn_delay = 1; +ACE_CString nodeapp_options_; + int parse_args (int argc, char *argv[]) { @@ -34,7 +33,8 @@ parse_args (int argc, char *argv[]) switch (c) { case 'z': - nodeapp_options_ = "-ORBDebugLevel 10"; + nodeapp_options_ += " -ORBDebugLevel "; + nodeapp_options_ += get_opts.opt_arg (); break; case 'o': // Get the file name to write to. @@ -43,11 +43,8 @@ parse_args (int argc, char *argv[]) break; case 'c': // Get the default svc.conf filename. - default_svcconf_ = get_opts.opt_arg (); - break; - - case 'm': // Get the svc.conf map configuration filename. - svcconf_config_ = get_opts.opt_arg (); + nodeapp_options_ += " -ORBSvcConf "; + nodeapp_options_ += get_opts.opt_arg (); break; case 's': // Get the location to spawn the NodeApplication. @@ -221,7 +218,7 @@ main (int argc, char *argv[]) orb.in (), poa.in (), nodeapp_location_, - nodeapp_options_, + nodeapp_options_.c_str (), spawn_delay), -1); |