1 Commits

Author SHA1 Message Date
Pin
e992f5a3b1 close input.write 2025-03-25 21:40:16 -04:00

1
msh.c
View File

@@ -251,6 +251,7 @@ char *getPrompt() {
printf("Error forking\n");
} else { // Parent process
close(input.read);
close(input.write);
close(output.write);
outputFileD = fdopen(output.read, "r");