Coredump is getting truncated

后端 未结 6 1360
孤城傲影
孤城傲影 2021-01-04 00:57

I am setting

ulimit -c unlimited. 

And in c++ program we are doing

struct rlimit corelimit;
  if (getrlimit(RLIMIT_CORE,          


        
6条回答
  •  时光说笑
    2021-01-04 01:22

    I remember there is a hard limit which can be set by the administrator, and a soft limit which is set by the user. If the soft limit is stronger than the hard limit, the hard limit value is taken. I'm not sure this is valid for any shell though, I only know it from bash.

提交回复
热议问题