Lines Matching refs:s_out
875 int s_in[2], s_out[2], s_err[2], i; in exec_cgi() local
885 if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, s_out) == -1) in exec_cgi()
900 close(s_out[0]); in exec_cgi()
904 close(s_out[1]); in exec_cgi()
918 close(s_out[0]); in exec_cgi()
923 if (dup2(s_out[1], STDOUT_FILENO) == -1) in exec_cgi()
929 close(s_out[1]); in exec_cgi()
962 close(s_out[1]); in exec_cgi()
966 fcntl(s_out[0], F_SETFD, FD_CLOEXEC); in exec_cgi()
971 if (ioctl(s_out[0], FIONBIO, &on) == -1) in exec_cgi()
980 event_set(&c->script_ev, s_out[0], EV_READ | EV_PERSIST, in exec_cgi()