forked from Spencer/math_shell
Compare commits
1 Commits
95c5a9cccc
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e992f5a3b1 |
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