close input.write

This commit is contained in:
Pin
2025-03-25 21:40:16 -04:00
parent 353e7d599e
commit e992f5a3b1

1
msh.c
View File

@@ -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");