core/src/main/java/org/jruby/util/io/PopenExecutor.java
static void run_exec_dup2_child(Ruby runtime, RubyArray ary, ExecArg eargp) {
        for (int i = 0; i < ary.size(); i++) {
            RubyArray elt = (RubyArray)ary.eltOk(i);
            int newfd = RubyNumeric.fix2int(elt.eltOk(0));
            int oldfd = RubyNumeric.fix2int(elt.eltOk(1));

            redirectDup2(eargp, oldfd, newfd);
        }
    }
/**
     * Add spawn configuration for duplicating descriptors in the child
     */
Add spawn configuration for duplicating descriptors in the child
Add spawn configuration for duplicating descriptors in the child
static void run_exec_dup2_child(Ruby runtime, RubyArray ary, ExecArg eargp) {
        for (int i = 0; i < ary.size(); i++) {
            RubyArray elt = (RubyArray)ary.eltOk(i);
            int newfd = RubyNumeric.fix2int(elt.eltOk(0));
            int oldfd = RubyNumeric.fix2int(elt.eltOk(1));
            redirectDup2(eargp, oldfd, newfd);
        }
    }
static void run_exec_dup2_child ( Ruby runtime , RubyArray ary , ExecArg eargp ) { for ( int i = 0 ; i < ary . size ( ) ; i ++ ) { RubyArray elt = ( RubyArray ) ary . eltOk ( i ) ; int newfd = RubyNumeric . fix2int ( elt . eltOk ( 0 ) ) ; int oldfd = RubyNumeric . fix2int ( elt . eltOk ( 1 ) ) ; redirectDup2 ( eargp , oldfd , newfd ) ; } }
Add spawn configuration for duplicating descriptors in the child
Add spawn configuration for duplicating descriptors in the child