return SF_ERR_INTERNAL;
}
+ if (master == 1 && (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)) {
+ ha_alert("Cannot set CLOEXEC on client socket.\n");
+ close(sv[0]);
+ close(sv[1]);
+ conn->err_code = CO_ER_SOCK_ERR;
+ conn->flags |= CO_FL_ERROR;
+ return SF_ERR_INTERNAL;
+ }
+
/* if a send_proxy is there, there are data */
data |= conn->send_proxy_ofs;
return SF_ERR_INTERNAL;
}
+ if (master == 1 && (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)) {
+ ha_alert("Cannot set CLOEXEC on client socket.\n");
+ close(fd);
+ conn->err_code = CO_ER_SOCK_ERR;
+ conn->flags |= CO_FL_ERROR;
+ return SF_ERR_INTERNAL;
+ }
+
if (be->options & PR_O_TCP_SRV_KA)
setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &one, sizeof(one));
return SF_ERR_INTERNAL;
}
+ if (master == 1 && (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)) {
+ ha_alert("Cannot set CLOEXEC on client socket.\n");
+ close(fd);
+ conn->err_code = CO_ER_SOCK_ERR;
+ conn->flags |= CO_FL_ERROR;
+ return SF_ERR_INTERNAL;
+ }
+
/* if a send_proxy is there, there are data */
data |= conn->send_proxy_ofs;