In order to control resource sharing between processes Pipe::Open() has given a new argument bool child_processes_inherit .
If child_processes_inherit is false take following approaches:
- On Linux, FreeBSD 10 or higher - use pipe2 with O_CLOEXEC flag.
- Otherwise - set FD_CLOEXEC flag on read and write pipe descriptors after successful pipe creation.
Not sure this is necessary