> In fact, the only thing that can be done here is: > > close(STDIN_FILENO); > dup(cmdfd); > + close(cmdfd); > stty(); > > because we are not going to use this file descriptor anymore, > but I think we will not have a significant improvement. >
Sorry, this is wrong, cmdfd is used in several other places.