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