diff options
author | Benoit Foucher <benoit@zeroc.com> | 2002-07-22 18:27:40 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2002-07-22 18:27:40 +0000 |
commit | f8ad6db815b1584bd55b8e56c2e8d1bd5cc66279 (patch) | |
tree | 394a626cf81c18d96d8c3efa9da325133080ff14 /cpp/src/IcePack/ActivatorI.cpp | |
parent | Fixed null dereference caused by silly typo in exception action. (diff) | |
download | ice-f8ad6db815b1584bd55b8e56c2e8d1bd5cc66279.tar.bz2 ice-f8ad6db815b1584bd55b8e56c2e8d1bd5cc66279.tar.xz ice-f8ad6db815b1584bd55b8e56c2e8d1bd5cc66279.zip |
Initial IcePack deployment implementation.
Diffstat (limited to 'cpp/src/IcePack/ActivatorI.cpp')
-rw-r--r-- | cpp/src/IcePack/ActivatorI.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/cpp/src/IcePack/ActivatorI.cpp b/cpp/src/IcePack/ActivatorI.cpp index 0260d459550..dd11db49854 100644 --- a/cpp/src/IcePack/ActivatorI.cpp +++ b/cpp/src/IcePack/ActivatorI.cpp @@ -22,10 +22,9 @@ using namespace std; using namespace Ice; using namespace IcePack; -IcePack::ActivatorI::ActivatorI(const CommunicatorPtr& communicator, const vector<string>& defaultArgs) : +IcePack::ActivatorI::ActivatorI(const CommunicatorPtr& communicator) : _communicator(communicator), - _destroy(false), - _defaultArgs(defaultArgs) + _destroy(false) { int fds[2]; if(pipe(fds) != 0) @@ -212,7 +211,7 @@ IcePack::ActivatorI::activate(const ServerPrx& server, const ::Ice::Current&) // // Compute arguments. // - int argc = desc.args.size() + _defaultArgs.size() + 3; + int argc = desc.args.size() + 2; char** argv = static_cast<char**>(malloc(argc * sizeof(char*))); argv[0] = strdup(path.c_str()); unsigned int i = 0; @@ -221,14 +220,6 @@ IcePack::ActivatorI::activate(const ServerPrx& server, const ::Ice::Current&) { argv[i + 1] = strdup(q->c_str()); } - for(q = _defaultArgs.begin(); q != _defaultArgs.end(); ++q, ++i) - { - argv[i + 1] = strdup(q->c_str()); - } - - string serverName = "--Ice.ProgramName=" + desc.name; - argv[argc - 2] = strdup(serverName.c_str()); - argv[argc - 1] = 0; if(execvp(argv[0], argv) == -1) |