From f9b7b86eb964c82cf09844edb26110016910bacb Mon Sep 17 00:00:00 2001 From: afwerar <1296468573@qq.com> Date: Wed, 18 Aug 2021 17:08:02 +0800 Subject: [PATCH] [TD-6169]: windows dll client can not quit. --- src/client/src/tscSystem.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/src/tscSystem.c b/src/client/src/tscSystem.c index c04765b065..9fedb2dfe7 100644 --- a/src/client/src/tscSystem.c +++ b/src/client/src/tscSystem.c @@ -199,7 +199,10 @@ void taos_init_imp(void) { // In the APIs of other program language, taos_cleanup is not available yet. // So, to make sure taos_cleanup will be invoked to clean up the allocated resource to suppress the valgrind warning. + // But in the dll, the child thread will be killed before atexit takes effect.So taos_cleanup is not necessary. +#if defined(_UWIN) atexit(taos_cleanup); +#endif tscDebug("client is initialized successfully"); } -- GitLab