fix child process spawn on macos hangs issue

When a child process with stdin, stdout behavior set to pipe is
ran on macos it used to hang which has been fixed. Issue existed because
we forgot to call `posix_spawn_file_actions_addclose` syscall on user
exposed file descriptor which resulted on file descriptor not closing
properly.
9e4cd1f4e6Rabin Gaire committed on 4/20/2022, 12:17:41 PMparent1a1b5ee
1 file changedLine totals unavailable