By default user processes can't attach a debugger to a process.
So explicitly allow that for all child processes, before calling
the panic action script.
metze
+#if defined(HAVE_PRCTL) && defined(PR_SET_PTRACER)
+ /*
+ * Make sure all children can attach a debugger.
+ */
+ prctl(PR_SET_PTRACER, getpid(), 0, 0, 0);
+#endif
+
if (panic_action && *panic_action) {
char pidstr[20];
char cmdstring[200];
if (panic_action && *panic_action) {
char pidstr[20];
char cmdstring[200];