popen: handle sid on macos
Due to os specifics we can't call setsid after vfork on macos
(vfork is not longer a part of posix btw). Instead we can use
ioctl to clear the session, then initiate a new process group.
Signed-off-by:
Cyrill Gorcunov <gorcunov@gmail.com>
Loading
Please register or sign in to comment