{
// Set back the close-on-exec flag for the socket.
// (This can't leak into a child, since we haven't been started yet.)
- fcntl(server_sock, F_SETFD, O_CLOEXEC);
+ fcntl(server_sock, F_SETFD, FD_CLOEXEC);
}
AcceptorProto Acceptor::serialize() const
{
// Set back the close-on-exec flag for the socket.
// (This can't leak into a child, since we haven't been started yet.)
- fcntl(sock, F_SETFD, O_CLOEXEC);
+ fcntl(sock, F_SETFD, FD_CLOEXEC);
if (stream != nullptr) {
if (setsockopt(sock, SOL_SOCKET, SO_MAX_PACING_RATE, &stream->pacing_rate, sizeof(stream->pacing_rate)) == -1) {
// Set back the close-on-exec flag for the socket.
// (This can't leak into a child, since we haven't been started yet.)
if (sock != -1) {
- fcntl(sock, F_SETFD, O_CLOEXEC);
+ fcntl(sock, F_SETFD, FD_CLOEXEC);
}
pending_data.resize(serialized.pending_data().size());
}
// Set the close-on-exec parameter back on the backlog fd.
- fcntl(data_fd, F_SETFD, O_CLOEXEC);
+ fcntl(data_fd, F_SETFD, FD_CLOEXEC);
for (ssize_t point : serialized.suitable_starting_point()) {
if (point == -1) {
{
// Set back the close-on-exec flag for the socket.
// (This can't leak into a child, since we haven't been started yet.)
- fcntl(sock, F_SETFD, O_CLOEXEC);
+ fcntl(sock, F_SETFD, FD_CLOEXEC);
// Should be verified by the caller.
string protocol;