Skip to content
Permalink
Browse files

Merge pull request #401 from MatthewMerrill/stdout

If stdout isn't a tty either, fall back to stdio
  • Loading branch information...
tbodt committed Jun 3, 2019
2 parents 82b872d + da1611b commit 8a7ee79682cd2f66d77b0f4343f423075465b9f7
Showing with 1 addition and 1 deletion.
  1. +1 −1 xX_main_Xx.h
@@ -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;

0 comments on commit 8a7ee79

Please sign in to comment.
You can’t perform that action at this time.