提交 fffe8658 编写于 作者: S Shengliang Guan

TD-1207

上级 1cfc236b
...@@ -146,7 +146,9 @@ int32_t main(int32_t argc, char *argv[]) { ...@@ -146,7 +146,9 @@ int32_t main(int32_t argc, char *argv[]) {
dInfo("TDengine is shut down!"); dInfo("TDengine is shut down!");
closelog(); closelog();
#ifdef WINDOWS
tsem_post(&exitSem); tsem_post(&exitSem);
#endif
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
...@@ -172,5 +174,7 @@ static void sigintHandler(int32_t signum) { ...@@ -172,5 +174,7 @@ static void sigintHandler(int32_t signum) {
// inform main thread to exit // inform main thread to exit
tsem_post(&exitSem); tsem_post(&exitSem);
#ifdef WINDOWS
tsem_wait(&exitSem); tsem_wait(&exitSem);
#endif
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册