开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜