version 1.46, 2002/05/13 21:47:11
|
version 1.48, 2002/05/14 16:59:32
|
|
|
| |
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
|
#include <Pegasus/suballoc/suballoc.h> |
#include <iostream> | #include <iostream> |
#include <cassert> | #include <cassert> |
#include <cstdlib> | #include <cstdlib> |
|
|
| |
static const char OPTION_TIMEOUT = 'T'; | static const char OPTION_TIMEOUT = 'T'; |
| |
|
#if defined(PEGASUS_OS_HPUX) |
|
static const char OPTION_BINDVERBOSE = 'X'; |
|
#endif |
|
|
static const String NAMESPACE = "root/PG_Internal"; | static const String NAMESPACE = "root/PG_Internal"; |
static const String CLASSNAME_SHUTDOWNSERVICE = "PG_ShutdownService"; | static const String CLASSNAME_SHUTDOWNSERVICE = "PG_ShutdownService"; |
static const String PROPERTY_TIMEOUT = "operationTimeout"; | static const String PROPERTY_TIMEOUT = "operationTimeout"; |
|
|
String timeoutStr = String::EMPTY; | String timeoutStr = String::EMPTY; |
long timeoutValue = 0; | long timeoutValue = 0; |
| |
|
|
// | // |
// Get environment variables: | // Get environment variables: |
// | // |
|
|
memmove(&argv[i], &argv[i + 2], (argc-i-1) * sizeof(char*)); | memmove(&argv[i], &argv[i + 2], (argc-i-1) * sizeof(char*)); |
argc -= 2; | argc -= 2; |
} | } |
|
#if defined(PEGASUS_OS_HPUX) |
|
// |
|
// Check to see if user asked for the version (-v option): |
|
// |
|
if (*option == OPTION_BINDVERBOSE) |
|
{ |
|
System::bindVerbose = true; |
|
cout << "Unsupported debug option, BIND_VERBOSE, enabled." |
|
<< endl; |
|
// remove the option from the command line |
|
memmove(&argv[i], &argv[i + 1], (argc-i) * sizeof(char*)); |
|
argc--; |
|
} |
|
#endif |
// | // |
// Check to see if user asked for shutdown (-s option): | // Check to see if user asked for shutdown (-s option): |
// | // |