return;
}
- chunk_printf(&trash, "\nPANIC! Thread %u is about to kill the process.\n", tid + 1);
+ chunk_printf(&trash, "\nPANIC! Thread %u is about to kill the process (pid %d).\n", tid + 1, pid);
/* dump a few of the post-mortem info */
chunk_appendf(&trash, "\nHAProxy info:\n version: %s\n features: %s\n",
" 'global' section of your configuration to avoid this in the future.\n");
}
- chunk_appendf(&buf, " => Trying to gracefully recover now.\n");
+ chunk_appendf(&buf, " => Trying to gracefully recover now (pid %d).\n", pid);
/* Note: it's important to dump the whole buffer at once to avoid
* interleaved outputs from multiple threads dumping in parallel.