Messages in this thread | | | Date | Thu, 1 Sep 2011 19:55:54 +0100 | From | Alan Cox <> | Subject | Re: [ PATCH 1/1 ] coredump: use current->group_leader->comm instead of current->comm |
| |
On Thu, 1 Sep 2011 10:01:39 -0700 Earl Chew <echew@ixiacom.com> wrote:
> Change corepattern %e and %E to use current->group_leader->comm instead of current->comm.
Which might break stuff.
> A core dump can be triggered from any task in a group, and substituting current->comm > means that the name of the core file for a process can vary in surprising ways.
Which some people may well be using
> Using current->group_leader->comm makes the name of the core file more consistent > for a process when used with %e or %E.
In your view, but there is a better way to do this - add a new case and letter for the behaviour you want. That way you don't break anyone elses defaults and expectation and people can set a corepattern dependant upon the group leader.
Alan
| |