From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp51.i.mail.ru (smtp51.i.mail.ru [94.100.177.111]) (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 7622F4765E3 for ; Sun, 27 Dec 2020 13:46:05 +0300 (MSK) Date: Sun, 27 Dec 2020 10:46:01 +0000 From: Kirill Yukhin Message-ID: <20201227104601.tsrmz437k234uxg5@tarantool.org> References: <20f64588aedf55188d368a789959d66bb04a0bc7.1608842218.git.artemreyt@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20f64588aedf55188d368a789959d66bb04a0bc7.1608842218.git.artemreyt@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH v4] lua: fix running init lua script List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Artem Starshov Cc: tarantool-patches@dev.tarantool.org, Alexander Turenko Hello, On 24 Dec 23:41, Artem Starshov via Tarantool-patches wrote: > When tarantool launched with -e flag and in > script after there is an error, program hangs. > This happens because shed fiber launches separate > fiber for init user script and starts auxiliary > event loop. It's supposed that fiber will stop > this loop, but in case of error in script, fiber > tries to stop a loop when the last one isn't > started yet. > > Added a flag, which will watch is loop started and > when fiber tries to call `ev_break()` we can be sure > that loop is running already. > > Fixes #4983 > --- > @ChangeLog: Fixed a hang when tarantool launched with the -e option and users > script throws an error (`tarantool -e 'assert(false)'`) (gh-4983). I've checked your patch into 1.10, 2.5, 2.6 and master. -- Regards, Kirill Yukhin