version 1.197, 2006/11/29 22:09:30
|
version 1.197.4.2, 2007/06/11 09:24:30
|
|
|
| |
if (rc != 0) | if (rc != 0) |
{ | { |
PEG_TRACE_STRING(TRC_SERVER, Tracer::LEVEL2, |
int errornumber = errno; |
"Failed to issue __console command"); |
char str_errno2[10]; |
|
sprintf(str_errno2,"%08X",__errno2()); |
|
|
|
PEG_TRACE((TRC_SERVER, Tracer::LEVEL2, |
|
"Failed to issue __console() command: %s",strerror(errornumber))); |
|
Logger::put_l( |
|
Logger::ERROR_LOG, "CIM Server", Logger::SEVERE, |
|
"Server.CIMServer.CONSOLE_ERROR.PEGASUS_OS_ZOS", |
|
"Console Communication Service failed:" |
|
"$0 ( errno $1, reason code 0x$2 ).", |
|
strerror(errornumber), |
|
errornumber, |
|
str_errno2); |
|
|
break; | break; |
} | } |
| |
|
|
void shutdownSignalHandler(int s_n, PEGASUS_SIGINFO_T* s_info, void* sig) | void shutdownSignalHandler(int s_n, PEGASUS_SIGINFO_T* s_info, void* sig) |
{ | { |
PEG_METHOD_ENTER(TRC_SERVER, "shutdownSignalHandler"); | PEG_METHOD_ENTER(TRC_SERVER, "shutdownSignalHandler"); |
Tracer::trace(TRC_SERVER, Tracer::LEVEL2, "Signal %d received.", s_n); |
PEG_TRACE((TRC_SERVER, Tracer::LEVEL2, "Signal %d received.", s_n)); |
| |
CIMServer::shutdownSignal(); | CIMServer::shutdownSignal(); |
| |
|
|
| |
if (handleShutdownSignal) | if (handleShutdownSignal) |
{ | { |
Tracer::trace(TRC_SERVER, Tracer::LEVEL3, |
PEG_TRACE_CSTRING(TRC_SERVER, Tracer::LEVEL3, |
"CIMServer::runForever - signal received. Shutting down."); | "CIMServer::runForever - signal received. Shutting down."); |
ShutdownService::getInstance(this)->shutdown(true, 10, false); | ShutdownService::getInstance(this)->shutdown(true, 10, false); |
// Set to false must be after call to shutdown. See | // Set to false must be after call to shutdown. See |
|
|
// for the wait here is to make sure that the Monitor entries | // for the wait here is to make sure that the Monitor entries |
// are updated before closing the connection sockets. | // are updated before closing the connection sockets. |
// | // |
// PEG_TRACE_STRING(TRC_SERVER, Tracer::LEVEL4, "Wait 150 milliseconds."); |
// PEG_TRACE_CSTRING(TRC_SERVER, Tracer::LEVEL4, "Wait 150 milliseconds."); |
// Threads::sleep(150); not needed anymore due to the semaphore | // Threads::sleep(150); not needed anymore due to the semaphore |
// in the monitor | // in the monitor |
| |
|
|
// | // |
if (String::equal(verifyClient, "required")) | if (String::equal(verifyClient, "required")) |
{ | { |
PEG_TRACE_STRING(TRC_SERVER, Tracer::LEVEL2, |
PEG_TRACE_CSTRING(TRC_SERVER, Tracer::LEVEL2, |
"SSL Client verification REQUIRED."); | "SSL Client verification REQUIRED."); |
| |
_sslContextMgr->createSSLContext( | _sslContextMgr->createSSLContext( |
|
|
} | } |
else if (String::equal(verifyClient, "optional")) | else if (String::equal(verifyClient, "optional")) |
{ | { |
PEG_TRACE_STRING(TRC_SERVER, Tracer::LEVEL2, |
PEG_TRACE_CSTRING(TRC_SERVER, Tracer::LEVEL2, |
"SSL Client verification OPTIONAL."); | "SSL Client verification OPTIONAL."); |
| |
_sslContextMgr->createSSLContext( | _sslContextMgr->createSSLContext( |
|
|
else if (String::equal(verifyClient, "disabled") || | else if (String::equal(verifyClient, "disabled") || |
verifyClient == String::EMPTY) | verifyClient == String::EMPTY) |
{ | { |
PEG_TRACE_STRING(TRC_SERVER, Tracer::LEVEL2, |
PEG_TRACE_CSTRING(TRC_SERVER, Tracer::LEVEL2, |
"SSL Client verification DISABLED."); | "SSL Client verification DISABLED."); |
| |
_sslContextMgr->createSSLContext( | _sslContextMgr->createSSLContext( |