No need to close file descriptors which we dup2() to

dup2() closes the destination file descriptor anyway
parent 71281335
......@@ -265,9 +265,6 @@ vdp_init(struct vdp_ctx *ctx, void **priv, struct objcore *objcore)
if (state->chldpid == 0) {
struct setenv_entry *setenv_entry;
close(STDIN_FILENO);
close(STDOUT_FILENO);
close(STDERR_FILENO);
closefd(&in[1]);
closefd(&out[0]);
closefd(&err[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment