Guest User

Untitled

a guest
Apr 16th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. if (i != (number_commands - 1))
  2. {
  3. printf("child %s %dn", commlist -> cmd, fd[i][1]);
  4. dup2(fd[i][1], STDOUT_FILENO);
  5. printf("child %sn", commlist -> cmd);
  6. close(fd[i][1]);
  7. }
Add Comment
Please, Sign In to add comment