From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f68.google.com (mail-lf1-f68.google.com [209.85.167.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 394C346970F for ; Fri, 29 Nov 2019 14:15:48 +0300 (MSK) Received: by mail-lf1-f68.google.com with SMTP id m30so20499518lfp.8 for ; Fri, 29 Nov 2019 03:15:48 -0800 (PST) Date: Fri, 29 Nov 2019 14:15:44 +0300 From: Cyrill Gorcunov Message-ID: <20191129111544.GD19879@uranus> References: <20191126151557.25754-1-sergepetrenko@tarantool.org> <20191126205620.GC23422@atlas> <20191127160751.GF2472@uranus> <20191127215147.GB31812@atlas> <20191127223131.GG2472@uranus> <48080BBC-71D6-48A7-9330-4D76B154E7CF@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48080BBC-71D6-48A7-9330-4D76B154E7CF@tarantool.org> 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: Serge Petrenko Cc: tarantool-patches@dev.tarantool.org On Fri, Nov 29, 2019 at 02:06:56PM +0300, Serge Petrenko wrote: > Hi! Thanks for your replies! > I meant different, something like void tarantool_atexit(void) { /* * Terminal settings might be screwed * when exit on panic, restore the * normal one. */ free_rl_state(void); } ... at_exit(tarantool_atexit); This will allow us to extend tarantool_atexit() with other cleanup routines if we need to. Sounds reasonable?