Configure the linux to write corefiles as core.pid?

If you dump core files you can run into a problem where multiple core files are dumped and one will overwrite the others. One solution to this problem is to change the Linux kernel so it will dump core to a file named core.pid .

Starting in the 2.4.x kernel series this can be accomplished by changing the value of /proc/sys/kernel/core_uses_pid from 0 to 1.