Raise a signal if there's no panic action
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 8 Jun 2016 14:37:52 +0000 (10:37 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 8 Jun 2016 15:05:24 +0000 (11:05 -0400)
src/lib/debug.c

index 797b4b6..151b4f6 100644 (file)
@@ -737,12 +737,14 @@ NEVER_RETURNS void fr_fault(int sig)
                                fr_exit_now(1);
                        }
                }
+
+               fr_exit_now(1);
        }
 
        FR_FAULT_LOG("Panic action exited with %i", code);
 
 finish:
-       fr_exit_now(1);
+       raise(sig);
 }
 
 /** Callback executed on fatal talloc error