close stderr of child process

This commit is contained in:
Linus Dierheimer
2021-05-01 21:27:46 +02:00
parent 85c7f4c772
commit fb17273ec4
+1
View File
@@ -20,6 +20,7 @@ void ffProcessAppendStdOut(FFstrbuf* buffer, char* const argv[])
dup2(pipes[1], STDOUT_FILENO);
close(pipes[0]);
close(pipes[1]);
close(STDERR_FILENO);
execvp(argv[0], argv);
exit(901);
}