From nobody Mon Jul 21 02:14:02 2025 X-Original-To: dev-commits-src-branches@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 4blkV30XM6z61xWX; Mon, 21 Jul 2025 02:14:03 +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 4blkV22CDRz3NdY; Mon, 21 Jul 2025 02:14:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753064042; 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=IrRoQUOqKG8ksQMlzP2PwjwGI8bbN/Gt24MgEpCV8LQ=; b=dLzI5lw5x0eHNyLCHsUlZJtLY/H9AB+obAnZG7TFV81+2Mg91Tq0XU2yP9FvLcG4Aj3zZU crBI8rY/yUanVM0LF7+FW+1qnqwa762l+l+EZybpp9TGnBIXnmxijkwH884GH30QEJqC7i S1L0YJjdm5voPl5UZArnFiRxgekqVyFlFYafjHpkkk/mnsFxbeB3UaXufUWuboWVq1qFTl R8CaWNB6zzGnmRA5FMImhp9yir3BmdMh9oMZjRIcVXFT4XRhhcEcibZ3sd3smVqcb70N44 XTi79ECSTTkMHs/dwYg1NCjyiIGHcddCQhwYBJnctPbejNUb2z/t5Zl61e9auw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753064042; 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=IrRoQUOqKG8ksQMlzP2PwjwGI8bbN/Gt24MgEpCV8LQ=; b=SozsvI91TC/bwxaUjJKGUUD2D+53j/dBSIQMyilmD/9lnGtpIB6G+ic0bxhQVgI+rWjQ8U GxpI20K09TMieCxFPpgpAJiRDGVpyZoW59MvhZ4HNQ/QY5VMkDKnx21BBgJa4NdhTSmRcc lbQ7TgQqnyWSoT0zdOTc3UDGL/tvGtPHj+F+wlG5H1fXYyZxI6dD7XSIJI3OXMZpyrRS8U YHnpO9PBq5WbuxcmcTHC/8GEpfXUGJk2bnuXsAep3G07d3a6yHVPhUrUOZ5c2PzbXysL3B MCFca0H2mmKrByaMi2RzhER/nq2iN9W5LBZ96f+feEOsxXtGCya6ok74EI8eYg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1753064042; a=rsa-sha256; cv=none; b=PQrsTu7L55PtvnfOCxLuuKMUPVSEluWcxNC3RVwBF2fvGxjiZsX9SMtffkhJ6TOoJ5IncB KTBpD9rULg9qjop8W8tjGK1Dr37EBykAicvdQlmuGNOFP9DpyeiDcuhLFtYjpUeu9Jv137 qLbs2QNSrNekZvbXQX8OAvqaLnJqzBU846J2Fy6+8rD/tLMAJbR8Ry2/hqTjUJ+r0/6RFf p6Rdor6Bq20Tb4BbK2Uu7BaGeKjMq0NzmjMWNQ6b9QJugniDNr36+tfu7lwEzPwGHtA3Ag neoiz0Qyl3S2Ig0Y0FdmBrmH6SZAxNyTeFWvHvEjrftM9DundtyrQMOq4OMA2Q== 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 4blkV21kJXzfGP; Mon, 21 Jul 2025 02:14:02 +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 56L2E2Ga014058; Mon, 21 Jul 2025 02:14:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 56L2E2Ac014055; Mon, 21 Jul 2025 02:14:02 GMT (envelope-from git) Date: Mon, 21 Jul 2025 02:14:02 GMT Message-Id: <202507210214.56L2E2Ac014055@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: dd695839efd8 - stable/14 - route: fix `route -n monitor` when its output is redirected List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: dd695839efd80fe81143cd6c7a552c30df8448f6 Auto-Submitted: auto-generated The branch stable/14 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=dd695839efd80fe81143cd6c7a552c30df8448f6 commit dd695839efd80fe81143cd6c7a552c30df8448f6 Author: Oleg Streejak AuthorDate: 2025-07-17 17:06:50 +0000 Commit: Kyle Evans CommitDate: 2025-07-21 02:13:16 +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 [...]") (cherry picked from commit 97b61b22edba74c62adba1d022fb73541aa5ff93) --- 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); }