OW_Platform.cpp File Reference

#include "OW_config.h"
#include "OW_Platform.hpp"
#include "OW_ConfigOpts.hpp"
#include "OW_Format.hpp"
#include "OW_PidFile.hpp"
#include "OW_ExceptionIds.hpp"
#include "OW_PlatformSignal.hpp"
#include "OW_ServiceEnvironmentIFC.hpp"
#include "OW_Logger.hpp"
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <fcntl.h>
#include <cstring>
#include <cstdio>
#include <iostream>

Include dependency graph for OW_Platform.cpp:

Go to the source code of this file.

Namespaces

namespace  OW_NAMESPACE
namespace  OW_NAMESPACE::Platform

Typedefs

typedef void(* OW_NAMESPACE::Platform::sighandler_t )(int)
typedef void(* OW_NAMESPACE::Platform::full_sighandler_t )(int, siginfo_t *, void *)

Functions

 OW_NAMESPACE::OW_DEFINE_EXCEPTION_WITH_ID (Daemon)
static void OW_NAMESPACE::Platform::theSigHandler (int sig, siginfo_t *info, void *context)
void OW_NAMESPACE::Platform::handleSignal (int sig)
void OW_NAMESPACE::Platform::setupSigHandler (bool dbgFlg)
void OW_NAMESPACE::Platform::daemonInit (int argc, char *argv[])
void OW_NAMESPACE::Platform::daemonize (bool dbgFlg, const String &daemonName, const ServiceEnvironmentIFCRef &env)
 
Exceptions:
DaemonException on error

int OW_NAMESPACE::Platform::daemonShutdown (const String &daemonName, const ServiceEnvironmentIFCRef &env)
void OW_NAMESPACE::Platform::rerunDaemon ()
 Re-run the daemon.
void OW_NAMESPACE::Platform::restartDaemon ()
 Restart the daemon.
void OW_NAMESPACE::Platform::handleSignalAux (int sig, sighandler_t handler)
void OW_NAMESPACE::Platform::handleSignalAux (int sig, full_sighandler_t handler)
void OW_NAMESPACE::Platform::handleSignal (int sig)
void OW_NAMESPACE::Platform::ignoreSignal (int sig)
static void OW_NAMESPACE::Platform::fatalSigHandler (int sig, siginfo_t *info, void *context)
void OW_NAMESPACE::Platform::setupSigHandler (bool dbgFlg)
void OW_NAMESPACE::Platform::installFatalSignalHandlers ()
void OW_NAMESPACE::Platform::removeFatalSignalHandlers ()
void OW_NAMESPACE::Platform::initDaemonizePipe ()
void OW_NAMESPACE::Platform::sendDaemonizeStatus (int status)
void OW_NAMESPACE::Platform::initSig ()
void OW_NAMESPACE::Platform::pushSig (const Signal::SignalInformation &sig)
int OW_NAMESPACE::Platform::popSig (Signal::SignalInformation &sig)
void OW_NAMESPACE::Platform::shutdownSig ()
SelectableIFCRef OW_NAMESPACE::Platform::getSigSelectable ()

Variables

const String OW_NAMESPACE::Platform::COMPONENT_NAME ("ow.owcimomd")
const int OW_NAMESPACE::Platform::DAEMONIZE_PIPE_TIMEOUT = 25
UnnamedPipeRef OW_NAMESPACE::Platform::plat_upipe
UnnamedPipeRef OW_NAMESPACE::Platform::daemonize_upipe
char ** OW_NAMESPACE::Platform::g_argv = 0


Generated on Thu Feb 9 09:03:06 2006 for openwbem by  doxygen 1.4.6