mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
Merge pull request #10010 from 9999years/fix-9941
Fix "Failed tcsetattr(TCSADRAIN)" when `nix repl` is not a TTY
This commit is contained in:
commit
864fc85fc8
1 changed files with 0 additions and 1 deletions
|
@ -383,7 +383,6 @@ bool NixRepl::getLine(std::string & input, const std::string & prompt)
|
||||||
};
|
};
|
||||||
|
|
||||||
setupSignals();
|
setupSignals();
|
||||||
Finally resetTerminal([&]() { rl_deprep_terminal(); });
|
|
||||||
char * s = readline(prompt.c_str());
|
char * s = readline(prompt.c_str());
|
||||||
Finally doFree([&]() { free(s); });
|
Finally doFree([&]() { free(s); });
|
||||||
restoreSignals();
|
restoreSignals();
|
||||||
|
|
Loading…
Reference in a new issue