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

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;