From nobody Fri Aug 8 00:39:04 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bylX85QqGz63ksH; Fri, 08 Aug 2025 00:39:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bylX83dC5z3WWF; Fri, 08 Aug 2025 00:39:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754613544; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cBPwj0y+X0Q2OxqCH+HR7jPeg3ifP28M/lAg5F7mfCk=; b=uE0Lf5ilUHP3aQI1xC8JOJq/us8H1Bet8tK7HCYAlfywy4Ct5m1jCXqCLHcVZamEOx377t v5DsLIMKnKqM6U4qkDL186HzQ+CCEmEVGZLcsbAnK9oV9L5hG53oheriZiy+ivxGic7QtJ HB7Qwmnocu3+edossWtj9ZKXXDUaHnVPxwnAtQ42KS3ZGjpXfPcTwXPoZUzQ2EIHoAjx7w 4tSeGwnrqc+cU1nYfDLXFSIKCfqVD3hZvUBG1lL5KOLFnLsHyPZO7R5pYdTMR7pgf9PaZ+ l15wtG6UxkpS/EB8Ykr6sscy2VQYU0J0UA/wsZRTdrrIiR0Ud1oWFpBOCdSLVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754613544; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cBPwj0y+X0Q2OxqCH+HR7jPeg3ifP28M/lAg5F7mfCk=; b=pDLpzbDEo5ld4fumwX/6G6aUJYyL5RJCrbIoXn9Ge0gLFbwTfBAFCGLhls5+noX5QraW3W QW7096+2dnobq2VC1X324oNwxO4xLu3Hi5C1h5gzGOtDlTPs2bUhCnRECvBtuVm8PRddK3 LAXLm0EGWe0A96gsgoZHx8pyucqeGQ1tDHz4AKGXslktKULVroaCc9MrdgG2yEFDewGvni 1thGy0j+YfszTeNWTeqPMBju9OzYW16DkuGm/5k030oZ5nKTrS75ocw6ut5tso0uO08R22 AStNZMoTKiSVW86Cn37LhOpxxKIL6cpVUwt80YtCxd42gIIXf3c0ChLXmGMh/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1754613544; a=rsa-sha256; cv=none; b=uv6htYFm0J+5BHCl8iB5zSb11Jjd5Inotcmdf0fs/xmS/AJc2KPzjK4Un0UiCaL2b1nJoL uzlNyhcpcJHSTjGgvu31rD+f49HxUzCXDgiBO/huAGUno+jQ0pdhnoW8G2uqBy5qIdlEz5 1gqSFyVKYXAokHxX7nQQxEbfhQBdVeT3aq2odcgFAkVNxo0taUlWOdrYyfa9u8bOEbYRk2 lC35Go08zxQz8TsMCFRVLsCiF0ktciANWMQHuWmBHopBd0SGK2ud2hNGxrtS+eGs7qPvx4 bzhHvZl4AB7crtL0UOTNUVchtCsZMIX6JyBQ+tYmPdR7DfdDNQvsNfn/qolAcQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bylX83Ctfz1SN1; Fri, 08 Aug 2025 00:39:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 5780d4Xh073693; Fri, 8 Aug 2025 00:39:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5780d4pZ073690; Fri, 8 Aug 2025 00:39:04 GMT (envelope-from git) Date: Fri, 8 Aug 2025 00:39:04 GMT Message-Id: <202508080039.5780d4pZ073690@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Tetlow Subject: git: 97f34921d77b - releng/14.3 - route: fix `route -n monitor` when its output is redirected List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gordon X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.3 X-Git-Reftype: branch X-Git-Commit: 97f34921d77b62721da53dbde19851cd38efe5c5 Auto-Submitted: auto-generated The branch releng/14.3 has been updated by gordon: URL: https://cgit.FreeBSD.org/src/commit/?id=97f34921d77b62721da53dbde19851cd38efe5c5 commit 97f34921d77b62721da53dbde19851cd38efe5c5 Author: Oleg Streejak AuthorDate: 2025-07-17 17:06:50 +0000 Commit: Gordon Tetlow CommitDate: 2025-08-07 23:22:27 +0000 route: fix `route -n monitor` when its output is redirected This is a small oversight in the transition to netlink; the non-netlink implementation would explicitly flush its stdout as necessary to avoid apparent long stalls in output when we end up fully-buffered. Adjust the netlink implementation to do the same. This was noticed while trying to triage failures in the wg-quick script. Commit message by kevans, patch by author. PR: 278265 Fixes: 091fec1188929 ("route: switch transport protocol [...]") Approved by: so Security: FreeBSD-EN-25:14.route (cherry picked from commit 97b61b22edba74c62adba1d022fb73541aa5ff93) (cherry picked from commit dd695839efd80fe81143cd6c7a552c30df8448f6) --- sbin/route/route_netlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/route/route_netlink.c b/sbin/route/route_netlink.c index 28766b062e18..2870d256aadd 100644 --- a/sbin/route/route_netlink.c +++ b/sbin/route/route_netlink.c @@ -733,6 +733,7 @@ print_nlmsg(struct nl_helper *h, struct nlmsghdr *hdr, struct snl_msg_info *cinf print_nlmsg_generic(h, hdr, cinfo); } + fflush(stdout); snl_clear_lb(&h->ss_cmd); }