crash signals
This commit is contained in:
parent
6f80e22d7a
commit
ae7a4172e8
|
@ -147,6 +147,7 @@ static void dmSetSignalHandle() {
|
||||||
(void)taosSetSignal(SIGQUIT, dmStopDnode);
|
(void)taosSetSignal(SIGQUIT, dmStopDnode);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if 0
|
||||||
#ifndef WINDOWS
|
#ifndef WINDOWS
|
||||||
(void)taosSetSignal(SIGBUS, dmLogCrash);
|
(void)taosSetSignal(SIGBUS, dmLogCrash);
|
||||||
#endif
|
#endif
|
||||||
|
@ -154,6 +155,7 @@ static void dmSetSignalHandle() {
|
||||||
(void)taosSetSignal(SIGFPE, dmLogCrash);
|
(void)taosSetSignal(SIGFPE, dmLogCrash);
|
||||||
(void)taosSetSignal(SIGSEGV, dmLogCrash);
|
(void)taosSetSignal(SIGSEGV, dmLogCrash);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int32_t dmParseArgs(int32_t argc, char const *argv[]) {
|
static int32_t dmParseArgs(int32_t argc, char const *argv[]) {
|
||||||
global.startTime = taosGetTimestampMs();
|
global.startTime = taosGetTimestampMs();
|
||||||
|
|
|
@ -50,12 +50,14 @@ int main(int argc, char *argv[]) {
|
||||||
shell.args.local = false;
|
shell.args.local = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if 0
|
||||||
#if !defined(WINDOWS)
|
#if !defined(WINDOWS)
|
||||||
taosSetSignal(SIGBUS, shellCrashHandler);
|
taosSetSignal(SIGBUS, shellCrashHandler);
|
||||||
#endif
|
#endif
|
||||||
taosSetSignal(SIGABRT, shellCrashHandler);
|
taosSetSignal(SIGABRT, shellCrashHandler);
|
||||||
taosSetSignal(SIGFPE, shellCrashHandler);
|
taosSetSignal(SIGFPE, shellCrashHandler);
|
||||||
taosSetSignal(SIGSEGV, shellCrashHandler);
|
taosSetSignal(SIGSEGV, shellCrashHandler);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (shellCheckIntSize() != 0) {
|
if (shellCheckIntSize() != 0) {
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue