@@ -686,7 +686,6 @@ public final class Process {
686
686
posix_spawn_file_actions_adddup2 ( & fileActions, stdinPipe [ 0 ] , 0 )
687
687
688
688
// Close the other side's pipe since it was dupped to 0.
689
- posix_spawn_file_actions_addclose ( & fileActions, stdinPipe [ 0 ] )
690
689
posix_spawn_file_actions_addclose ( & fileActions, stdinPipe [ 1 ] )
691
690
692
691
var outputPipe : [ Int32 ] = [ - 1 , - 1 ]
@@ -699,7 +698,6 @@ public final class Process {
699
698
posix_spawn_file_actions_adddup2 ( & fileActions, outputPipe [ 1 ] , 1 )
700
699
701
700
// Close the other ends of the pipe since they were dupped to 1.
702
- posix_spawn_file_actions_addclose ( & fileActions, outputPipe [ 0 ] )
703
701
posix_spawn_file_actions_addclose ( & fileActions, outputPipe [ 1 ] )
704
702
705
703
if outputRedirection. redirectStderr {
@@ -711,7 +709,6 @@ public final class Process {
711
709
posix_spawn_file_actions_adddup2 ( & fileActions, stderrPipe [ 1 ] , 2 )
712
710
713
711
// Close the other ends of the pipe since they were dupped to 2.
714
- posix_spawn_file_actions_addclose ( & fileActions, stderrPipe [ 0 ] )
715
712
posix_spawn_file_actions_addclose ( & fileActions, stderrPipe [ 1 ] )
716
713
}
717
714
} else {
0 commit comments