Skip to content

Commit

Permalink
fix: no core file generated on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dapan1121 committed Jan 10, 2023
1 parent 86231b2 commit 039f0c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/client/src/clientEnv.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,11 @@ void taosClientCrash(int signum, void *sigInfo, void *context) {

taosLogCrashInfo("taos", pMsg, msgLen, signum, sigInfo);

#ifdef _TD_DARWIN_64
exit(signum);
#elif defined(WINDOWS)
exit(signum);
#endif
}

void crashReportThreadFuncUnexpectedStopped(void) { atomic_store_32(&clientStop, -1); }
Expand Down
4 changes: 4 additions & 0 deletions source/dnode/mgmt/exe/dmMain.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ void dmLogCrash(int signum, void *sigInfo, void *context) {

taosLogCrashInfo("taosd", pMsg, msgLen, signum, sigInfo);

#ifdef _TD_DARWIN_64
exit(signum);
#elif defined(WINDOWS)
exit(signum);
#endif
}

static void dmSetSignalHandle() {
Expand Down

0 comments on commit 039f0c2

Please sign in to comment.