This commit is contained in:
Shengliang Guan 2021-01-20 09:40:47 +08:00
parent 1cfc236b35
commit fffe865871
1 changed files with 4 additions and 0 deletions

View File

@ -146,7 +146,9 @@ int32_t main(int32_t argc, char *argv[]) {
dInfo("TDengine is shut down!");
closelog();
#ifdef WINDOWS
tsem_post(&exitSem);
#endif
return EXIT_SUCCESS;
}
@ -172,5 +174,7 @@ static void sigintHandler(int32_t signum) {
// inform main thread to exit
tsem_post(&exitSem);
#ifdef WINDOWS
tsem_wait(&exitSem);
#endif
}