Skip to content

Commit

Permalink
if stdout isn't a tty either, fall back to stdio
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewMerrill committed Jun 3, 2019
1 parent 82b872d commit da1611b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xX_main_Xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static inline int xX_main_Xx(int argc, char *const argv[], const char *envp) {
if (err < 0)
return err;
tty_drivers[TTY_CONSOLE_MAJOR] = &real_tty_driver;
if (isatty(STDIN_FILENO)) {
if (isatty(STDIN_FILENO) && isatty(STDOUT_FILENO)) {
err = create_stdio(console);
if (err < 0)
return err;
Expand Down

0 comments on commit da1611b

Please sign in to comment.