Permalink
Browse files

Missed some traceback handler ifdefs

(cherry picked from commit 2005fe2)
  • Loading branch information...
1 parent dd943dd commit 58c4834d68daaee7a5e5de9351e278966a0a86e7 @James-TR James-TR committed Dec 17, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 pdns/receiver.cc
View
@@ -405,7 +405,7 @@ int main(int argc, char **argv)
s_programname="pdns";
s_starttime=time(0);
-#ifdef __linux__
+#ifdef __GLIBC__
signal(SIGSEGV,tbhandler);
signal(SIGFPE,tbhandler);
signal(SIGABRT,tbhandler);
@@ -470,7 +470,7 @@ int main(int argc, char **argv)
// we really need to do work - either standalone or as an instance
-#ifdef __linux__
+#ifdef __GLIBC__
if(!::arg().mustDo("traceback-handler")) {
L<<Logger::Warning<<"Disabling traceback handler"<<endl;
signal(SIGSEGV,SIG_DFL);

0 comments on commit 58c4834

Please sign in to comment.