main: display a message when local console is exited
Consider the following example: ``` tarantool -e "box.cfg{} require('console').start()" ``` When a local console is exited by pressing Ctrl+D, Tarantool seemingly freezes - console stops to work, typed characters are not echoed. But the event loop is not stopped because there are background fibers running. This patch adds a message that Ctrl+C should be pressed in such a case. Closes #7017 NO_DOC=minor
Showing
- changelogs/unreleased/gh-7017-display-message-on-console-exit.md 4 additions, 0 deletions...ogs/unreleased/gh-7017-display-message-on-console-exit.md
- src/box/lua/console.c 13 additions, 0 deletionssrc/box/lua/console.c
- src/box/lua/console.h 10 additions, 0 deletionssrc/box/lua/console.h
- src/box/lua/console.lua 1 addition, 0 deletionssrc/box/lua/console.lua
- src/main.cc 6 additions, 0 deletionssrc/main.cc
- test/app-luatest/gh_7017_message_on_console_exit_test.lua 37 additions, 0 deletionstest/app-luatest/gh_7017_message_on_console_exit_test.lua
Please register or sign in to comment