Fix Pseudo-terminal will not be allocated because stdin is not a terminal.