[Tarantool-patches] [PATCH 13/13] popen: use of exception safe functions for IO

Alexander Turenko alexander.turenko at tarantool.org
Fri Apr 10 15:21:05 MSK 2020


On Fri, Apr 10, 2020 at 02:50:00PM +0300, Cyrill Gorcunov wrote:
> On Fri, Apr 10, 2020 at 05:50:51AM +0300, Alexander Turenko wrote:
> > popen read / write functions provides are written in C and intended to

Fixed typo: removed 'provides'.

> > be used from C: the contract is to return -1 at failure and set an entry
> > to the diagnostics area. However a C++ exception from coio read / write
> > functions would pass over a popen function stack frame.
> > 
> > The solution is to use the recently introduced coio exception safe
> > functions.
> > 
> > Part of #4031
> Acked-by: Cyrill Gorcunov <gorcunov at gmail.com>

Thanks for the review!


More information about the Tarantool-patches mailing list