Can I set the Linux coredump file format for current current process only?
Some help file introduce t开发者_如何学编程o use sysctl, but it would changed the format globally and need admin permission to do, is there any API or a way to change the dump format for current process only in code?
No. The core format is not specified in the process table, and hence it is not possible to change it per-process. Use the pipe core handler to filter the cores and handle them as desired. See the core(5)
man page for details.
精彩评论