See posix_spawn_file_actions_addclose.html