lib/async_req/async_sock.c set socket close on exec
[kai/samba-autobuild/.git] / lib / async_req / async_sock.c
index db3916e07e7a2f718d8ec0d9fdfd2f50fc4e890d..0a8a333f4f34152dedb6f3d423be3f4c3135144b 100644 (file)
@@ -738,6 +738,7 @@ static void accept_handler(struct tevent_context *ev, struct tevent_fd *fde,
                tevent_req_error(req, errno);
                return;
        }
+       smb_set_close_on_exec(ret);
        state->sock = ret;
        tevent_req_done(req);
 }