摘要:
在系统设置了ulimit -SHc unlimited ,程序并不产生corefile文件;由此有下面的分析:1. 程序使用了daemon的方式启动的, daemon是/etc/init.d/functions 上定义的函数,里面有一段是这样的daemon() {...... # make sure it doesn't core dump anywhere unless requested corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"...... # And start it up. if [ -z &q 阅读全文