Merge pull request #751 from taosdata/feature/lihui

[modify for arm]
This commit is contained in:
Bomin Zhang 2019-11-20 16:53:22 +08:00 committed by GitHub
commit 5473468a4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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() {
} }
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) {