Patch bug pipe

This commit is contained in:
rick 2021-02-18 18:41:43 +01:00
parent 8eb34f0307
commit 5c2a686e45
Signed by: Rick
GPG Key ID: 2B593F087240EE99
1 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,8 @@ int main()
dup2(my_pipe[0], STDIN_FILENO);
else if (index == 0)
dup2(my_pipe[1], STDOUT_FILENO);
//close(my_pipe[0]);
//close(my_pipe[1]);
close(my_pipe[0]);
close(my_pipe[1]);
execvp(args[0], args);
return 0;