Daemon.cc File Reference

Daemon non-inline non-template implementation. More...

#include "Daemon.hh"
#include "Daemon.ih"
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <unistd.h>
#include <limits.h>
#include <fcntl.h>
#include <errno.h>
#include <signal.h>
#include <sstream>
#include <fstream>
#include <algorithm>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/trim.hpp>
#include <boost/format.hpp>
#include <boost/bind.hpp>
#include <senf/Utils/Exception.hh>
#include <senf/Utils/membind.hh>
#include <senf/Utils/Backtrace.hh>
#include <senf/Utils/signalnames.hh>
#include <ucontext.h>

Go to the source code of this file.

Macros

#define prefix_
 
#define LIBC_CALL(fn, args)
 
#define LIBC_CALL_RV(var, fn, args)   int var (fn args); if (var < 0) SENF_THROW_SYSTEM_EXCEPTION(#fn "()")
 
#define catchAllOtherExceptions()
 

Detailed Description

Daemon non-inline non-template implementation.

Definition in file Daemon.cc.

Macro Definition Documentation

◆ catchAllOtherExceptions

#define catchAllOtherExceptions ( )
Value:
catch (std::exception & e) { \
std::cerr << "\n*** Fatal exception: " << e.what() << "\n" << std::endl; \
return 1; \
} \
catch (...) { \
std::cerr << "\n*** Fatal exception: (unknown)" << "\n" << std::endl; \
return 1; \
}

Definition at line 253 of file Daemon.cc.

◆ LIBC_CALL

#define LIBC_CALL (   fn,
  args 
)
Value:
if (fn args < 0) \
SENF_THROW_SYSTEM_EXCEPTION(#fn "()")

Definition at line 51 of file Daemon.cc.

◆ LIBC_CALL_RV

#define LIBC_CALL_RV (   var,
  fn,
  args 
)    int var (fn args); if (var < 0) SENF_THROW_SYSTEM_EXCEPTION(#fn "()")

Definition at line 54 of file Daemon.cc.

◆ prefix_

#define prefix_

Definition at line 48 of file Daemon.cc.