version 1.210, 2007/09/03 04:41:01
|
version 1.211, 2007/09/10 08:17:07
|
|
|
#include <Service/ServerRunStatus.h> | #include <Service/ServerRunStatus.h> |
| |
#if defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) | #if defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) |
|
#include <Pegasus/Common/SetFileDescriptorToEBCDICEncoding.h> |
#include <Service/ARM_zOS.h> | #include <Service/ARM_zOS.h> |
# ifdef PEGASUS_ZOS_SECURITY | # ifdef PEGASUS_ZOS_SECURITY |
// This include file will not be provided in the OpenGroup CVS for now. | // This include file will not be provided in the OpenGroup CVS for now. |
|
|
// Set Message loading to process locale | // Set Message loading to process locale |
MessageLoader::_useProcessLocale = true; | MessageLoader::_useProcessLocale = true; |
| |
|
#ifdef PEGASUS_OS_ZOS |
|
// Direct standard input to /dev/null, |
|
close(STDIN_FILENO); |
|
open("/dev/null", O_RDONLY); |
|
|
|
if ( setEBCDICEncoding(STDOUT_FILENO)==-1 || |
|
setEBCDICEncoding(STDERR_FILENO)==-1 ) |
|
{ |
|
PEG_TRACE_CSTRING(TRC_SERVER,Tracer::LEVEL4, |
|
"Coud not set stdout or stderr to EBCDIC encoding."); |
|
} |
|
// Need to initialize timezone information in the |
|
// initial processing thread (IPT) |
|
tzset(); |
|
#endif |
|
|
#if defined(PEGASUS_OS_AIX) && defined(PEGASUS_HAS_MESSAGES) | #if defined(PEGASUS_OS_AIX) && defined(PEGASUS_HAS_MESSAGES) |
setlocale(LC_ALL, ""); | setlocale(LC_ALL, ""); |
#endif | #endif |
|
|
{ | { |
// Direct standard input, output, and error to /dev/null, | // Direct standard input, output, and error to /dev/null, |
// since we are running as a daemon. | // since we are running as a daemon. |
close(0); |
close(STDIN_FILENO); |
open("/dev/null", O_RDONLY); | open("/dev/null", O_RDONLY); |
close(1); |
close(STDOUT_FILENO); |
open("/dev/null", O_RDWR); | open("/dev/null", O_RDWR); |
close(2); |
close(STDERR_FILENO); |
open("/dev/null", O_RDWR); | open("/dev/null", O_RDWR); |
} | } |
#endif | #endif |