fix uv crash

This commit is contained in:
Shengliang Guan 2022-04-02 11:21:27 +08:00
parent dc7147760b
commit ed2fa5a8fa
1 changed files with 2 additions and 2 deletions

View File

@ -23,9 +23,9 @@ int32_t taosNewProc(char **args) {
int32_t pid = fork(); int32_t pid = fork();
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 {
return pid; return pid;