double_pipe.c

This commit is contained in:
2026-04-16 23:19:25 +02:00
parent 588d27633b
commit 9a472fdd08
7 changed files with 54 additions and 98 deletions
+3 -2
View File
@@ -20,11 +20,12 @@ int duper(char **argv, char *output){
//int fd[2];
//pipe(fd);
if(!argv || !*argv || !output) return 1;
int wstatus;
pid_t pid = fork();
if(pid < 0) return -1;
if(pid < 0) return 1;
//Child
else if (pid == 0){