X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FDaemon%2FDaemon.cc;h=f39db198bf1fb88c26c5b45b8f9ec2d53cc88759;hb=5b2e9a63a43027c71ac470ac9bdecb72e8974951;hp=0923647ace08f81f47ac559fcb0cfc5815ba4551;hpb=57daeae6f2e924ce3f16f9677c3474f531cba9e5;p=senf.git diff --git a/senf/Utils/Daemon/Daemon.cc b/senf/Utils/Daemon/Daemon.cc index 0923647..f39db19 100644 --- a/senf/Utils/Daemon/Daemon.cc +++ b/senf/Utils/Daemon/Daemon.cc @@ -35,7 +35,7 @@ #include #include #include -#ifdef SENF_DEBUG +#ifdef SENF_BACKTRACE #include #endif #include @@ -520,7 +520,7 @@ namespace { if (sig == SIGSEGV) std::cerr << "Invalid memory access at " << info->si_addr << "\n"; - +#ifdef SENF_BACKTRACE static void * entries[SENF_DEBUG_BACKTRACE_NUMCALLERS]; unsigned nEntries( ::backtrace(entries, SENF_DEBUG_BACKTRACE_NUMCALLERS) ); @@ -530,7 +530,7 @@ namespace { std::cerr << "Backtrace:\n"; senf::formatBacktrace(std::cerr, entries, nEntries); std::cerr << "-- \n"; - +#endif //SENF_BACKTRACE if (sig != SIGUSR2) { ::signal(sig, SIG_DFL); ::kill(::getpid(), sig); @@ -539,7 +539,7 @@ namespace { } -#endif +#endif // SENF_DEBUG namespace { void sighupHandler(int sig)