Commit 455281a9 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Workaround a problem in recent libedit versions

Reinstall the readline handler when we are called in order to clear the
input line. Tested in a variety of versions by scn and myself.

Fixes #1531
parent 177fc4de
......@@ -184,6 +184,7 @@ static void send_line(char *l)
cli_write(_line_sock, l);
cli_write(_line_sock, "\n");
add_history(l);
rl_callback_handler_install("varnish> ", send_line);
} else {
RL_EXIT(0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment