No, you cannot install it for each process. The main file is dumped either to the current working directory of the process, or to the directory installed in / proc / sys / kernel / core _pattern if the template contains a directory.
CoreDumpDirectory in apache is a hack, apache registers signal handlers for all signals that cause a core dump, and changes the current directory in its signal handler.
static void sig_coredump(int sig) { apr_filepath_set(ap_coredump_dir, pconf); apr_signal(sig, SIG_DFL); #if AP_ENABLE_EXCEPTION_HOOK run_fatal_exception_hook(sig); #endif if (getpid() == parent_pid) { ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, ap_server_conf, "seg fault or similar nasty error detected " "in the parent process"); } kill(getpid(), sig); }
nos
source share