Patch bug pipe
This commit is contained in:
parent
8eb34f0307
commit
5c2a686e45
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue