Erlang:如何禁用“crash dump” &安培; “核心转储”代? [英] Erlang: how to disable "crash dump" & "core dump" generation?

查看:161
本文介绍了Erlang:如何禁用“crash dump” &安培; “核心转储”代?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法禁用崩溃转储的生成运行'erl'时的核心转储文件?



PS:我知道erl的+ d选项,但是我想完全禁用崩溃/核心转储。

解决方案

如果你进入脏修补,你可以在erl_crash_dump_v函数的顶部插入一个返回语句break.c,然后重新编译。


Is there any way to disable the generation of "crash dump" & "core dump" files when running 'erl' ?

PS: I know about the "+d" option of erl but I want to completely disable the generation of crash/core dumps.

解决方案

If you are into dirty patching, you can insert a return statement right at the top of the erl_crash_dump_v function in break.c, and recompile.

这篇关于Erlang:如何禁用“crash dump” &安培; “核心转储”代?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆