On 07/23/2010 05:28 PM, Denys Vlasenko wrote:
Old core pattern is passed to the hook as argv[6], hex encoded
in order to preserve spaces and percents.
%p %s %u %c and %% specifiers are supported.
/proc/.../core_uses_pid has any effect only if old pattern is "core".
Patch is run tested.
There is /disk1/tmp/core.%h.%e.%u in the bz which should be fixed by
this patch, so probably all of the options bellow should be supported:
%p - pid
%u - uid
%g - gid
%s - signal number
%t - UNIX time of dump
%h - hostname
%e - executable filename
%% - output one "%"
(the list is taken from:
http://www.linuxinsight.com/proc_sys_kernel_core_pattern.html)
Jirka