Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If stdout isn't a tty either, fall back to stdio #401

Merged
merged 1 commit into from Jun 3, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

if stdout isn't a tty either, fall back to stdio

  • Loading branch information...
MatthewMerrill committed Jun 3, 2019
commit da1611b5eda199b1f4632f07ce04530c354308c4
@@ -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;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.