Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Commit

Permalink
Workaround a problem in recent libedit versions
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fgsch committed Jun 30, 2014
1 parent 7b410fd commit 2c0f1ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/varnishadm/varnishadm.c
Expand Up @@ -177,6 +177,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);
}
Expand Down

0 comments on commit 2c0f1ba

Please sign in to comment.