Just to check, did you generate the core dump file after changing the settings in /proc/? This may be stating the obvious, but the settings will only effect new core dump files; it won't go through and modify the hard disk for you.
core_uses_pid should only be ignored if core_pattern contains %p.
You'll find the code that builds the filename in /usr/src/linux/fs/exec.c (if you have the kernel sources installed); the function is called format_corename. You didn't specify your kernel version, but I have (for the appending core bit):
Code:
if (!pid_in_pattern
&& (core_uses_pid || atomic_read(¤t->mm->mm_users) != 1)) {
rc = snprintf(out_ptr, out_end - out_ptr,
".%d", current->tgid);
if (rc > out_end - out_ptr)
goto out;
out_ptr += rc;
}
So it will also be ignored if mm_users is not 1; I am not sure what mm_users actually is (it's part of the mm_struct structure which deals with memory mapping) but it seems to be related to the number of users involved with the given process. Can anyone shed some more light on this?
Of course, if you
never want the PID, then you can always hack it by deleteing the block of code above from the kernel and recompiling. But you'll then have to repeat this process every kernel update…