New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lua: avoid tarantool console quit if sigint signal sending #6633
Conversation
Regarding commit message:
Length of lines in commit message body is limited by 72 symbols. See Developer's guideline.
The proper keyword here is 'Fixes' with colon. See Developer's guideline. |
I see that many jobs are failed on CI. Before merge all them must be passed. I run Tarantool in interactive mode and send SIGINT to it ( sergeyb@pony:~/sources/MRG/tarantool/build$ ./src/tarantool
Tarantool 2.10.0-beta1-153-g71a789f07
type 'help' for interactive help
tarantool>
tarantool> Looks like a correct behavior.
Input was moved to a new line again. Let's compare behavior with ftp.
With line that contains entered symbols:
Do you see a difference? I think we should print '^C' too. |
Regarding |
3572eb0
to
db06163
Compare
63dccbf
to
8d0c446
Compare
eea3a89
to
9c81969
Compare
It is a good idea. This behavior is added with latest commit. |
I guess that bash and Tarantool console just have different SIGINT handlers, that is why the behavior can be different. So if we need to print anything in console after any signal we should add this behavior to handler manually. |
There are comments without your answer opened three weeks ago. Without response from an author of a patch it is hard to track progress: one need to re-verify each comment manually during review. It is responsibility of the author of the patch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for resolving all open comments.
c9e6d2e
to
9ec6db0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
e5abfa6
to
9683b1c
Compare
9683b1c
to
fff8785
Compare
Tarantool console quits if you type Ctrl+C. This patch fixes console behavior on sending SIGINT. Console discards the current input on typing Ctrl+C and invites user to the new line. In daemon mode the process will exit after receiving SIGINT. Test gh-2717 should be skipped on release build, cause it uses error injection which is enabled only on debug mode. Fixes #2717 @TarantoolBot document Title: Use Ctrl+C to discard the input in console The signal SIGINT discards the input in console mode. When tarantool executes with -e flag or runs as a daemon, SIGINT kills the process and tarantool complains about it in log.
fff8785
to
4baadc8
Compare
Tarantool console quits if you type Ctrl+C.
This patch fixes console behavior on typing Ctrl+C. The patch is intended to make user experience of using tarantool console better.
Relates to #2717