Merge branch '4.next'
[exim.git] / src / src / log.c
index 8ca973f2def7a8b7b8a32796d4e9edb43a04aaea..a46d523db1fe9bdadf89ee3a0243ea94cedc172e 100644 (file)
@@ -1278,7 +1278,10 @@ if (flags & LOG_PANIC)
   /* Give up if the DIE flag is set */
 
   if ((flags & LOG_PANIC_DIE) != LOG_PANIC)
-    die(NULL, US"Unexpected failure, please try later");
+    if (panic_coredump)
+      kill(getpid(), SIGSEGV); /* deliberate trap */
+    else
+      die(NULL, US"Unexpected failure, please try later");
   }
 }