未验证 提交 5473468a 编写于 作者: weixin_48148422's avatar weixin_48148422 提交者: GitHub

Merge pull request #751 from taosdata/feature/lihui

[modify for arm]
...@@ -608,6 +608,7 @@ void taosSetCoreDump() { ...@@ -608,6 +608,7 @@ void taosSetCoreDump() {
pPrint("the new unlimited para: rlim_cur=%d, rlim_max=%d", rlim.rlim_cur, rlim.rlim_max); pPrint("the new unlimited para: rlim_cur=%d, rlim_max=%d", rlim.rlim_cur, rlim.rlim_max);
} }
#ifndef _TD_ARM_
// 2. set the path for saving core file // 2. set the path for saving core file
struct __sysctl_args args; struct __sysctl_args args;
int old_usespid = 0; int old_usespid = 0;
...@@ -649,9 +650,10 @@ void taosSetCoreDump() { ...@@ -649,9 +650,10 @@ void taosSetCoreDump() {
} }
pPrint("The new core_uses_pid[%d]: %d", old_len, old_usespid); pPrint("The new core_uses_pid[%d]: %d", old_len, old_usespid);
#endif
#if 0 #if 0
// 3. set the path for saving core file // 3. create the path for saving core file
int status; int status;
char coredump_dir[32] = "/var/log/taosdump"; char coredump_dir[32] = "/var/log/taosdump";
if (opendir(coredump_dir) == NULL) { if (opendir(coredump_dir) == NULL) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册