[Tarantool-patches] [PATCH 6/7] popen: handle setsid os specifics
Alexander Turenko
alexander.turenko at tarantool.org
Tue Mar 10 19:36:46 MSK 2020
> It seems that setsid() is used mainly to disassociate from a controlling
> terminal (to don't be hit by SIGHUP if it'll die). In this context
> setpgrp() would not be sufficient.
I just realized that there is another reason to use setsid(), where
setpgrp() is applicable too: move the child into its own process group
and kill the whole group (child and its childs if any) then. I mean, use
the corresponding flag (which I proposed to add in [1]), which will
change :kill() behaviour.
[1]: https://lists.tarantool.org/pipermail/tarantool-patches/2020-March/014608.html
So, it seems, we should do ioctl() + setpgrp() on Mac OS?
WBR, Alexander Turenko.
More information about the Tarantool-patches
mailing list