[Tarantool-patches] [PATCH] clear terminal state on panic

Alexander Turenko alexander.turenko at tarantool.org
Mon Jan 13 14:14:43 MSK 2020


On Mon, Dec 23, 2019 at 05:29:31PM +0300, Alexander Turenko wrote:
> On Tue, Dec 10, 2019 at 05:03:11PM +0300, Kirill Yukhin wrote:
> > Hello,
> > 
> > On 26 ноя 18:15, Serge Petrenko wrote:
> > > The tarantool_free() call in the end of main() works all the time except
> > > when we exit due to a panic. We need to clear terminal state in this
> > > case also, so return to using atexit() to clear readline state.
> > > 
> > > Closes #4466
> > > ---
> > > https://github.com/tarantool/tarantool/issues/4466
> > > https://github.com/tarantool/tarantool/tree/sp/gh-4466-clear-rl-state
> > > 
> > >  src/main.cc | 34 ++++++++++++++++++++++++----------
> > >  1 file changed, 24 insertions(+), 10 deletions(-)
> 
> I'm okay with the change itself.
> 
> > I've checked your patch into master.
> 
> Kirill, please, propagate into all supported long-term branches: this is
> the bugfix.

Kirill approved the cherry-pick. The patch is already in 2.3 and master.
I pushed it to 2.2 and 1.10:

1.10.4-81-gbac732eef
2.2.2-5-g821cc167e

WBR, Alexander Turenko.


More information about the Tarantool-patches mailing list