Skip to content

Commit

Permalink
Merge pull request #401 from MatthewMerrill/stdout
Browse files Browse the repository at this point in the history
If stdout isn't a tty either, fall back to stdio
  • Loading branch information
tbodt committed Jun 3, 2019
2 parents 82b872d + da1611b commit 8a7ee79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xX_main_Xx.h
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 8a7ee79

Please sign in to comment.