Make "nix-instantiate -" interruptible

This commit is contained in:
Eelco Dolstra 2012-08-28 11:47:26 -04:00
parent 15e1b2c223
commit f7b650d234

View file

@ -26,9 +26,7 @@ void printHelp()
static Expr * parseStdin(EvalState & state)
{
startNest(nest, lvlTalkative, format("parsing standard input"));
string s, s2;
while (getline(std::cin, s2)) s += s2 + "\n";
return state.parseExprFromString(s, absPath("."));
return state.parseExprFromString(drainFD(0), absPath("."));
}