]> git.kaiwu.me - njs.git/commit
Shell: improved working with libedit.
authorDmitry Volyntsev <xeioex@nginx.com>
Sat, 20 May 2023 03:22:16 +0000 (20:22 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Sat, 20 May 2023 03:22:16 +0000 (20:22 -0700)
commitec9c169a675040ae55536f01270581bf5b4f158a
tree9af90d0d872a2150f9dc5fb68702e0509409e2b8
parent8a03334e27393fc2031f071830f9605f4373b0be
Shell: improved working with libedit.

Previously, libedit unlike GNU readline does not reinstall
rl_callback_handler_install handler after the handler was called.  As a
result make shell_test executed ~20 times longer with libedit.

The fix is to reinstall the rl_callback_handler_install handler
explicitely every time the handler is invoked.
external/njs_shell.c
test/shell_test.exp