fix: add default command line to start udfd when taosd is started directly from command line

This commit is contained in:
shenglian zhou 2022-12-06 11:42:53 +08:00
parent 220709c9ae
commit cf3ec5ad40
1 changed files with 5 additions and 3 deletions

View File

@ -88,11 +88,13 @@ static int32_t udfSpawnUdfd(SUdfdData *pData) {
}
#ifdef WINDOWS
if (strlen(path) == 0) {
strcat(path, "udfd.exe");
} else {
strcat(path, "\\udfd.exe");
strcat(path, "C:\\TDengine")
}
strcat(path, "\\udfd.exe");
#else
if (strlen(path) == 0) {
strcat(path, "/usr/bin");
}
strcat(path, "/udfd");
#endif
char *argsUdfd[] = {path, "-c", configDir, NULL};