From 4551dd0f2c6f3050c2434b413da173e7826cf3cf Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Mon, 4 Mar 2024 09:13:55 +0100 Subject: [PATCH] Merge pull request #10010 from 9999years/fix-9941 Fix "Failed tcsetattr(TCSADRAIN)" when `nix repl` is not a TTY (cherry picked from commit 864fc85fc88ff092725ba99907611b2b8d2205fb) Change-Id: I8198674b935fabd741a349cc74544e61c53ea7b3 --- src/libcmd/repl.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc index bcd887d76..6181e3eb2 100644 --- a/src/libcmd/repl.cc +++ b/src/libcmd/repl.cc @@ -340,7 +340,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();