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

Cyrill Gorcunov gorcunov at gmail.com
Fri Nov 29 16:00:55 MSK 2019


On Fri, Nov 29, 2019 at 03:20:16PM +0300, Serge Petrenko wrote:
...
> But no problem, here’s the incremental diff
>  
> diff --git a/src/main.cc b/src/main.cc
> index a1572b81e..e674d85b1 100644
>  
> +void
> +tarantool_atexit(void)
> +{
> +       /* Same checks as in tarantool_free() */
> +       if (getpid() != master_pid)
> +               return;
> +
> +       if (!cord_is_main())
> +               return;
> +
> +       free_rl_state();
> +}

As to me this is a way cleaner. Ack from my side.
Lets wait for Kostya's opinion.


More information about the Tarantool-patches mailing list