Lines Matching refs:newsock
1121 server_accept_loop(int *sock_in, int *sock_out, int *newsock, int *config_s)
1192 *newsock = accept(listen_socks[i],
1194 if (*newsock < 0) {
1203 if (unset_nonblock(*newsock) == -1) {
1204 close(*newsock);
1208 char *laddr = get_local_ipaddr(*newsock);
1209 char *raddr = get_peer_ipaddr(*newsock);
1213 raddr, get_peer_port(*newsock),
1214 laddr, get_local_port(*newsock));
1217 close(*newsock);
1221 close(*newsock);
1229 close(*newsock);
1256 *sock_in = *newsock;
1257 *sock_out = *newsock;
1289 *sock_in = *newsock;
1290 *sock_out = *newsock;
1314 close(*newsock);
1388 int sock_in = -1, sock_out = -1, newsock = -1;
1912 &newsock, config_s);
1936 debug("rexec start in %d out %d newsock %d pipe %d sock %d",
1937 sock_in, sock_out, newsock, startup_pipe, config_s[0]);
1938 dup2(newsock, STDIN_FILENO);
1961 newsock = sock_out = sock_in = dup(STDIN_FILENO);
1968 debug("rexec cleanup in %d out %d newsock %d pipe %d sock %d",
1969 sock_in, sock_out, newsock, startup_pipe, config_s[0]);