close input.write
This commit is contained in:
1
msh.c
1
msh.c
@@ -251,6 +251,7 @@ char *getPrompt() {
|
|||||||
printf("Error forking\n");
|
printf("Error forking\n");
|
||||||
} else { // Parent process
|
} else { // Parent process
|
||||||
close(input.read);
|
close(input.read);
|
||||||
|
close(input.write);
|
||||||
close(output.write);
|
close(output.write);
|
||||||
|
|
||||||
outputFileD = fdopen(output.read, "r");
|
outputFileD = fdopen(output.read, "r");
|
||||||
|
|||||||
Reference in New Issue
Block a user