Namespaces | ||||
namespace | Signal | |||
Typedefs | ||||
typedef void(* | sighandler_t )(int) | |||
typedef void(* | full_sighandler_t )(int, siginfo_t *, void *) | |||
Enumerations | ||||
enum | { DAEMONIZE_SUCCESS, DAEMONIZE_FAIL } | |||
enum | { SHUTDOWN, REINIT } | |||
Functions | ||||
static void | theSigHandler (int sig, siginfo_t *info, void *context) | |||
void | handleSignal (int sig) | |||
void | setupSigHandler (bool dbgFlg) | |||
void | daemonInit (int argc, char *argv[]) | |||
void | daemonize (bool dbgFlg, const String &daemonName, const ServiceEnvironmentIFCRef &env) | |||
| ||||
int | daemonShutdown (const String &daemonName, const ServiceEnvironmentIFCRef &env) | |||
void | rerunDaemon () | |||
Re-run the daemon. | ||||
void | restartDaemon () | |||
Restart the daemon. | ||||
void | handleSignalAux (int sig, sighandler_t handler) | |||
void | handleSignalAux (int sig, full_sighandler_t handler) | |||
void | handleSignal (int sig) | |||
void | ignoreSignal (int sig) | |||
static void | fatalSigHandler (int sig, siginfo_t *info, void *context) | |||
void | setupSigHandler (bool dbgFlg) | |||
void | installFatalSignalHandlers () | |||
void | removeFatalSignalHandlers () | |||
void | initDaemonizePipe () | |||
void | sendDaemonizeStatus (int status) | |||
void | initSig () | |||
void | pushSig (const Signal::SignalInformation &sig) | |||
int | popSig (Signal::SignalInformation &sig) | |||
void | shutdownSig () | |||
SelectableIFCRef | getSigSelectable () | |||
Variables | ||||
const String | COMPONENT_NAME ("ow.owcimomd") | |||
const int | DAEMONIZE_PIPE_TIMEOUT = 25 | |||
UnnamedPipeRef | plat_upipe | |||
UnnamedPipeRef | daemonize_upipe | |||
char ** | g_argv = 0 |
|
Definition at line 432 of file OW_Platform.cpp. |
|
Definition at line 398 of file OW_Platform.cpp. |
|
Definition at line 53 of file OW_Platform.hpp. |
|
Definition at line 58 of file OW_Platform.hpp. |
|
Definition at line 139 of file OW_Platform.cpp. References g_argv. Referenced by processCommandLine(). |
|
Definition at line 148 of file OW_Platform.cpp. References OW_NAMESPACE::ConfigOpts::DROP_ROOT_PRIVILEGES_opt, env, initDaemonizePipe(), OW_DEFAULT_DROP_ROOT_PRIVILEGES, and OW_THROW_ERRNO_MSG. Referenced by main(). |
|
Definition at line 282 of file OW_Platform.cpp. References env, OW_DEFAULT_PIDFILE, OW_NAMESPACE::ConfigOpts::PIDFILE_opt, OW_NAMESPACE::PidFile::removePid(), and shutdownSig(). |
|
Definition at line 522 of file OW_Platform.cpp. References rerunDaemon(). Referenced by installFatalSignalHandlers(). |
|
Definition at line 759 of file OW_Platform.cpp. References plat_upipe. Referenced by OW_NAMESPACE::CIMOMEnvironment::runSelectEngine(). |
|
Definition at line 466 of file OW_Platform.cpp. References handleSignalAux(), and theSigHandler(). |
|
Referenced by setupSigHandler(). |
|
Definition at line 439 of file OW_Platform.cpp. |
|
Definition at line 402 of file OW_Platform.cpp. Referenced by handleSignal(), ignoreSignal(), installFatalSignalHandlers(), and removeFatalSignalHandlers(). |
|
Definition at line 471 of file OW_Platform.cpp. References handleSignalAux(). Referenced by setupSigHandler(). |
|
Definition at line 708 of file OW_Platform.cpp. References DAEMONIZE_PIPE_TIMEOUT, and daemonize_upipe. Referenced by daemonize(). |
|
Definition at line 724 of file OW_Platform.cpp. References plat_upipe. |
|
Definition at line 663 of file OW_Platform.cpp. References fatalSigHandler(), and handleSignalAux(). Referenced by main(). |
|
Definition at line 739 of file OW_Platform.cpp. References plat_upipe, and OW_NAMESPACE::Platform::Signal::unflattenSignalInformation(). |
|
Definition at line 730 of file OW_Platform.cpp. References OW_NAMESPACE::Platform::Signal::flattenSignalInformation(), and plat_upipe. Referenced by theSigHandler(). |
|
Definition at line 676 of file OW_Platform.cpp. References handleSignalAux(). |
|
Re-run the daemon. This closes all file handles and then calls execv to replace the current process with a new copy of the daemon. precondition: daemonInit() must have been called previously, because the same set of arguments will be passed to execv(). This function does not return.
Definition at line 307 of file OW_Platform.cpp. References g_argv, i, and OW_THROW_ERRNO_MSG. Referenced by fatalSigHandler(), main(), and restartDaemon(). |
|
Restart the daemon. This initiates the restart process. On POSIX platforms, it just sends a SIGHUP to the main process. Definition at line 382 of file OW_Platform.cpp. References rerunDaemon(). Referenced by owcimomd_new_handler(). |
|
Definition at line 715 of file OW_Platform.cpp. References daemonize_upipe. |
|
Definition at line 566 of file OW_Platform.cpp. References handleSignal(), ignoreSignal(), and OW_THROW. |
|
|
|
Definition at line 753 of file OW_Platform.cpp. References plat_upipe. Referenced by daemonShutdown(). |
|
Definition at line 483 of file OW_Platform.cpp. References OW_NAMESPACE::Platform::Signal::extractSignalInformation(), pushSig(), REINIT, SHUTDOWN, and OW_NAMESPACE::Platform::Signal::SignalInformation::signalAction. Referenced by handleSignal(). |
|
|
|
Definition at line 114 of file OW_Platform.cpp. Referenced by initDaemonizePipe(). |
|
Definition at line 121 of file OW_Platform.cpp. Referenced by initDaemonizePipe(), and sendDaemonizeStatus(). |
|
Definition at line 123 of file OW_Platform.cpp. Referenced by daemonInit(), and rerunDaemon(). |
|
Definition at line 119 of file OW_Platform.cpp. Referenced by getSigSelectable(), initSig(), popSig(), pushSig(), and shutdownSig(). |