[Tarantool-patches] [PATCH 1/5] popen: Introduce a backend engine
Cyrill Gorcunov
gorcunov at gmail.com
Fri Nov 29 18:17:10 MSK 2019
On Fri, Nov 29, 2019 at 06:14:10PM +0300, Cyrill Gorcunov wrote:
>
> 2) When I do various ops on popen object (say sending kill, fetching
> status of a process and etc) I block SIGCHLD of coio thread,
> otherwise there is a race with external users which could simply
> kill the "command" process we're running and popen->pid no longer
> valid, what is worse someone else could be take this pid already.
>
> Thus I need to block signals for this sake, and now if I start
> calling the popen helpers without entering coio thread (ie without
> coio_custom helpers) I wont be able to block signals. If I understand
> correctly the console is running inside own thread, no?
Just realized that this should be fine since we're sharing signals.
Drop the question 2.
Cyrill
More information about the Tarantool-patches
mailing list