Ticket #2185: execunix.c.2.patch

File execunix.c.2.patch, 834 bytes (added by ilyasokol@…, 13 years ago)

removes o_nonblock from both ends of pipe

  • execunix.c

     
    190190    {
    191191        if ( pipe( out ) < 0 )
    192192            exit( EXITBAD );
    193         fcntl( out[0], F_SETFL, O_NONBLOCK );
    194         fcntl( out[1], F_SETFL, O_NONBLOCK );
    195193
    196194        if ( pipe( err ) < 0 )
    197195            exit( EXITBAD );
    198         fcntl( err[0], F_SETFL, O_NONBLOCK );
    199         fcntl( err[1], F_SETFL, O_NONBLOCK );
    200196    }
    201197
    202198    /* Start the command */
     
    232228        }
    233229        else
    234230            dup2( err[1], STDERR_FILENO );
     231        close( out[1] );
     232        close( err[1] );
    235233
    236234        /* Make this process a process group leader so that when we kill it, all
    237235         * child processes of this process are terminated as well. We use