Skip to content

Commit ea09cfd

Browse files
author
hyqooo
committed
removed FIXME comments
1 parent 8418a33 commit ea09cfd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

shell.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,6 @@ int cmd_cd(struct tokens *tokens){
105105
}
106106

107107
/* Execute program */
108-
/*
109-
So what have I found?
110-
FIXME: program corrupts it own files
111-
FIXME: '>' creates executable files
112-
FIXME: core fault
113-
FIXME: '<' after using stops work of the shell
114-
*/
115108
int shell_exec(struct tokens *tokens){
116109
int saved_stdout = dup(fileno(stdout));
117110
int saved_stdin = dup(fileno(stdin));
@@ -137,6 +130,7 @@ int shell_exec(struct tokens *tokens){
137130
exit(1);
138131
}
139132

133+
/* restore stdout and stdin to console input and output */
140134
dup2(saved_stdin, fileno(stdin));
141135
dup2(saved_stdout, fileno(stdout));
142136
fflush(stdout);

0 commit comments

Comments
 (0)