dlls/ntdll/server.c
/***********************************************************************
 *           server_pipe
 *
 * Create a pipe for communicating with the server.
 */
server_pipe
Create a pipe for communicating with the server.
server_pipe Create a pipe for communicating with the server .
int server_pipe( int fd[2] )
{
    int ret;
#ifdef HAVE_PIPE2
    static int have_pipe2 = 1;
    if (have_pipe2)
    {
        if (!(ret = pipe2( fd, O_CLOEXEC ))) return ret;
        if (errno == ENOSYS || errno == EINVAL) have_pipe2 = 0;  
    }
#endif
    if (!(ret = pipe( fd )))
    {
        fcntl( fd[0], F_SETFD, FD_CLOEXEC );
        fcntl( fd[1], F_SETFD, FD_CLOEXEC );
    }
    return ret;
}
int server_pipe ( int fd [ 2 ] ) { int ret ; #ifdef HAVE_PIPE2 static int have_pipe2 = 1 ; if ( have_pipe2 ) { if ( ! ( ret = pipe2 ( fd , O_CLOEXEC ) ) ) return ret ; if ( errno == ENOSYS || errno == EINVAL ) have_pipe2 = 0 ; } #endif if ( ! ( ret = pipe ( fd ) ) ) { fcntl ( fd [ 0 ] , F_SETFD , FD_CLOEXEC ) ; fcntl ( fd [ 1 ] , F_SETFD , FD_CLOEXEC ) ; } return ret ; }
server_pipe
 Create a pipe for communicating with the server.
server_pipe Create a pipe for communicating with the server .
/* don't try again */