From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id ECFFD46970E for ; Mon, 13 Jan 2020 14:14:41 +0300 (MSK) Date: Mon, 13 Jan 2020 14:14:43 +0300 From: Alexander Turenko Message-ID: <20200113111443.bfxmemycctc6ihai@tkn_work_nb> References: <20191126151557.25754-1-sergepetrenko@tarantool.org> <20191210140311.p3cipmfkx44bebyn@tarantool.org> <20191223142931.72eyceez622rtt5x@tkn_work_nb> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191223142931.72eyceez622rtt5x@tkn_work_nb> Subject: Re: [Tarantool-patches] [PATCH] clear terminal state on panic List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kirill Yukhin Cc: tarantool-patches@dev.tarantool.org 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.