fix(cluster): the log is printed twice in multi-process mode

This commit is contained in:
Shengliang Guan 2022-04-12 13:20:34 +08:00
parent dd155fda16
commit d98e87de5a
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ int32_t taosNewProc(char **args) {
if (pid == 0) { if (pid == 0) {
args[0] = tsProcPath; args[0] = tsProcPath;
// close(STDIN_FILENO); // close(STDIN_FILENO);
close(STDOUT_FILENO); // close(STDOUT_FILENO);
// close(STDERR_FILENO); // close(STDERR_FILENO);
return execvp(tsProcPath, args); return execvp(tsProcPath, args);
} else { } else {