[PATCH] Add --core-pattern option to eu-stack

Mark Wielaard mjw at redhat.com
Mon Nov 3 13:22:23 UTC 2014


On Thu, 2014-10-30 at 22:55 +0100, Mark Wielaard wrote:
> I did have to lookup how to use this though. And I couldn't make it work
> without adding an -o option to eu-stack to explicitly redirect output
> since it seems you cannot use normal shell redirections
> in /proc/sys/kernel/core_pattern. So I had to use something like
> --output=/proc/%p/cwd/%i.stack. Where does the stdout of the
> core_pattern end up otherwise?

For reference. Attached is the cleaned up -o support patch I added.
It is a little paranoid setting umask and using O_EXCL explicitly.
But I think that is correct behavior when used in cases where normal
shell redirection doesn't work.

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-stack-Add-output-o-option.patch
Type: text/x-patch
Size: 7121 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/elfutils-devel/attachments/20141103/28f05c19/attachment.bin>


More information about the elfutils-devel mailing list