#include "daemon.h"
#include "main.h"
#include "daemon_unix.h"
#include <iostream.h>
#include <fstream.h>
#include <stdlib.h>
#include <errno.h>
#include <string>
Include dependency graph for daemon_unix.cc:
Go to the source code of this file.
Namespaces | |
namespace | omniORB |
namespace | OmniEvents |
Defines | |
#define | NEED_PACKAGE_INFO |
#define | STRERR_FILE_LINE strerror(errno)<<" "<<__FILE__<<":"<<__LINE__ |
#define | PIPE_READ 0 |
#define | PIPE_WRITE 1 |
Functions | |
void | setLogFunction (void(*logFunction)(const char *)) |
void | shutdown0 (void) |
Param to atexit(). | |
void | shutdown2 (int s, void *) |
Param to on_exit(). | |
Variables | |
DaemonImpl | daemon |
Singleton - only at file scope. |
|
Definition at line 28 of file daemon_unix.cc. |
|
Definition at line 87 of file daemon_unix.cc. Referenced by OmniEvents::DaemonImpl::fork(), and OmniEvents::DaemonImpl::waitForChild(). |
|
Definition at line 88 of file daemon_unix.cc. Referenced by OmniEvents::DaemonImpl::fork(), and OmniEvents::DaemonImpl::notifyParent(). |
|
|
Referenced by OmniEvents::Service::daemonize(), and OmniEvents::DaemonImpl::daemonize(). |
|
Param to atexit().
Definition at line 114 of file daemon_unix.cc. References OmniEvents::daemon, and OmniEvents::DaemonImpl::shutdown(). Referenced by OmniEvents::Service::daemonize(), and OmniEvents::DaemonImpl::daemonize(). |
|
Param to on_exit().
Definition at line 115 of file daemon_unix.cc. References OmniEvents::daemon, and OmniEvents::DaemonImpl::shutdown(). Referenced by OmniEvents::DaemonImpl::daemonize(). |
|
Singleton - only at file scope. Although we initialize the value to NULL, we don't trust that the runtime will actually initialise it. Definition at line 94 of file daemon_unix.cc. Referenced by OmniEvents::Daemon::Daemon(), OmniEvents::Daemon::daemonize(), OmniEvents::Daemon::foreground(), OmniEvents::DaemonImpl::log(), main(), OmniEvents::Daemon::pidfile(), OmniEvents::Daemon::runningOk(), OmniEvents::shutdown0(), OmniEvents::shutdown2(), OmniEvents::Daemon::tracefile(), and OmniEvents::Daemon::~Daemon(). |