fix: add default command line to start udfd when taosd is started directly from command line
This commit is contained in:
parent
220709c9ae
commit
cf3ec5ad40
|
@ -88,11 +88,13 @@ static int32_t udfSpawnUdfd(SUdfdData *pData) {
|
||||||
}
|
}
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
if (strlen(path) == 0) {
|
if (strlen(path) == 0) {
|
||||||
strcat(path, "udfd.exe");
|
strcat(path, "C:\\TDengine")
|
||||||
} else {
|
|
||||||
strcat(path, "\\udfd.exe");
|
|
||||||
}
|
}
|
||||||
|
strcat(path, "\\udfd.exe");
|
||||||
#else
|
#else
|
||||||
|
if (strlen(path) == 0) {
|
||||||
|
strcat(path, "/usr/bin");
|
||||||
|
}
|
||||||
strcat(path, "/udfd");
|
strcat(path, "/udfd");
|
||||||
#endif
|
#endif
|
||||||
char *argsUdfd[] = {path, "-c", configDir, NULL};
|
char *argsUdfd[] = {path, "-c", configDir, NULL};
|
||||||
|
|
Loading…
Reference in New Issue