to open door files.
the C code, using pipe2() when available. Adds unittests for close_fds and cloexec behaviors.