[Tarantool-patches] [PATCH 1/5] popen: Introduce a backend engine

Cyrill Gorcunov gorcunov at gmail.com
Sat Nov 30 23:36:27 MSK 2019


On Sat, Nov 30, 2019 at 11:30:54PM +0300, Konstantin Osipov wrote:
> * Cyrill Gorcunov <gorcunov at gmail.com> [19/11/30 23:03]:
> > Forgot to mention that the example in previous message is
> > for pipe opened in blocked mode. If o_nonblock used the
> > script fails in "read" action. I think the main target now
> > for me is to investigate which mode uses python in subprocess
> > module and etc (simply because users are familiar with it and
> > will expect us to behave the same I think).
> 
> It will fail unless you handle EAGAIN and yield. Do you?

True. If I handle -EAGAIN inside my test-script it will work,
but this is not a standart behaviour users expect I think. As
I pointed in another message the python subprocess opens pipe
in blocking mode and I suppose we should do the same, otherwise
users will have to keep in mind that our pipes are opened in
nonblocking mode, which is inconvenient.


More information about the Tarantool-patches mailing list