Lines Matching refs:fd_out
151 int fd_in[2] = { -1, -1 }, fd_out[2] = {-1, -1};
164 if (pipe(fd_out) < 0) {
204 if (fd_out[0] >= 0 && close(fd_out[0]) < 0) {
207 if (fd_out[1] >= 0 && close(fd_out[1]) < 0) {
227 if (fd_out[0] >= 0 && close(fd_out[0]) < 0)
243 fd_in[0], fd_out[1], child_extra_fds,
251 if (fd_out[1] >= 0 && close(fd_out[1]) < 0)
255 pclient->fd_out = fd_in[1];
257 if (fd_out[0] >= 0) {
258 net_set_nonblock(fd_out[0], TRUE);
259 pclient->fd_in = fd_out[0];
282 int fd_out = pclient->fd_out;
284 pclient->fd_out = -1;
287 if (fd_out >= 0 && close(fd_out) < 0) {