Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

daemon_unix.cc File Reference

#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.


Define Documentation

#define NEED_PACKAGE_INFO
 

Definition at line 28 of file daemon_unix.cc.

#define PIPE_READ   0
 

Definition at line 87 of file daemon_unix.cc.

Referenced by OmniEvents::DaemonImpl::fork(), and OmniEvents::DaemonImpl::waitForChild().

#define PIPE_WRITE   1
 

Definition at line 88 of file daemon_unix.cc.

Referenced by OmniEvents::DaemonImpl::fork(), and OmniEvents::DaemonImpl::notifyParent().

#define STRERR_FILE_LINE   strerror(errno)<<" "<<__FILE__<<":"<<__LINE__
 

Definition at line 85 of file daemon_unix.cc.

Referenced by OmniEvents::DaemonImpl::checkPidfileOrShutdown(), OmniEvents::DaemonImpl::daemonize(), OmniEvents::DaemonImpl::fork(), OmniEvents::DaemonImpl::notifyParent(), OmniEvents::DaemonImpl::redirectStreamsTo(), OmniEvents::DaemonImpl::shutdown(), and OmniEvents::DaemonImpl::waitForChild().


Function Documentation

void omniORB::setLogFunction void(*)(const char *)  logFunction  ) 
 

Referenced by OmniEvents::Service::daemonize(), and OmniEvents::DaemonImpl::daemonize().

void OmniEvents::shutdown0 void   ) 
 

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().

void OmniEvents::shutdown2 int  s,
void * 
 

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().


Variable Documentation

DaemonImpl OmniEvents::daemon
 

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().


Generated on Sun Jun 12 01:40:14 2005 for OmniEvents by  doxygen 1.4.2