commit
5473468a4f
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue