Merge pull request #10010 from 9999years/fix-9941

Fix "Failed tcsetattr(TCSADRAIN)" when `nix repl` is not a TTY
This commit is contained in:
Théophane Hufschmitt 2024-02-28 14:25:58 +01:00 committed by GitHub
commit 864fc85fc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();