Skip to content

Commit

Permalink
Merge pull request NixOS#10010 from 9999years/fix-9941
Browse files Browse the repository at this point in the history
Fix "Failed tcsetattr(TCSADRAIN)" when `nix repl` is not a TTY
  • Loading branch information
thufschmitt authored Feb 28, 2024
2 parents f489a6e + a694cfb commit 864fc85
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libcmd/repl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ bool NixRepl::getLine(std::string & input, const std::string & prompt)
};

setupSignals();
Finally resetTerminal([&]() { rl_deprep_terminal(); });
char * s = readline(prompt.c_str());
Finally doFree([&]() { free(s); });
restoreSignals();
Expand Down

0 comments on commit 864fc85

Please sign in to comment.