From nobody Fri Aug 8 00:39:17 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 4bylXQ3yZRz63kw2; Fri, 08 Aug 2025 00:39:18 +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 4bylXQ1b4Lz3XBJ; Fri, 08 Aug 2025 00:39:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754613558; 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=w7/8Qb3gyOMGSVCL1orbCQXeadkiP+8w89SA99tcbZI=; b=nF9Sffpk/LBpfpyY+TyGxbU9XN/NvZlStHkdczN3j6TgZOv2sUILASlcQAyl+7xW8D+Gwe 3l9HlqDi/sWdIwh7+HdhtMnF0ZJmXqmIYCYjWfZIEVXGvLDsEKSVFezFrnRRARySwwT/+A x0d4aZTAUodi0SGFSAStgxmkgz78utAL3w0hk5TdXARbI4OWDF8Kjc0J50G0pRZ4x5SHC4 osaZWmyVOUeg5ZBrOqI3nn250czfp8V5xUrszUo6JNEzdD3LP0DgRdYRY8a1z3XLFkMAH5 4jGT6xw+L/8duuO1pUYVyixVGS0J3xTCotXaY8YZKOqhrZFO7JSNCRO9Hylvhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754613558; 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=w7/8Qb3gyOMGSVCL1orbCQXeadkiP+8w89SA99tcbZI=; b=rlmzs3akVa+QQIRVGtlnB56X6yxWPffLGM0FzoA+Dpa0o6u/nfi9iwJ3N2hhu8QQvxMmng sxROqve01d5KnBPb3wQwk4K78YFykCj/zUOrlD3kkWp3H6ivn217rt2cwx3MSkqOjYdtvS W1SJpYIvjLCs08sgwfzQSZ4H4nBJIj9yY/QBw5UjnT6uCnQI//GKwJ6NKTjavWKKw2B4D2 mP1wSjeExrtPEe7ofozKRjco+UwP/O4o0/RaMU33yRDZ7+ryeaZFmvyvGObbfsyZp0c1rn 2lXR5UkkjcyakbpbFaJAVNGg7DsMxLmlkJ+nZZtAVPImNice9UnLEprmvGqftA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1754613558; a=rsa-sha256; cv=none; b=w0Uq6vh6zMx0O1XpXaPfoFuomwDNgg8UZQGXWcXNXkYwZp2HtIJXB5Y/1jWCKkPVLFZrbR MnK0A4/Xv3GNuBVq+1NO8rO8C6Z6R8DIyYI2OAwmx6lEZuB7BOeXpM30XnQ0Xor0K4pAMQ 8lx+RgnRQUOOJouGAx09XZa2sf3EPtqqKopbnbiMaVY8L3d0Yf8t9pYA+mk9eeLY16IHaA b69YHc0WTxzG6OQ1AR3KtCh/jFDF6TXjevbJLsEmBjYvTN781PIJJk0UZ59o3QiQp6DLRt bgM8rlNMLZIJpoU4gnS4lJ2tOJD6zSkBEueS6SwO0cmn51uONoFaegY9ClttwQ== 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 4bylXQ0Hb4z1Ry1; Fri, 08 Aug 2025 00:39:18 +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 5780dHj6073962; Fri, 8 Aug 2025 00:39:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5780dH8a073959; Fri, 8 Aug 2025 00:39:17 GMT (envelope-from git) Date: Fri, 8 Aug 2025 00:39:17 GMT Message-Id: <202508080039.5780dH8a073959@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: 168703212b61 - releng/14.2 - 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.2 X-Git-Reftype: branch X-Git-Commit: 168703212b618f32b42ed1f9e062a74d7f0cc534 Auto-Submitted: auto-generated The branch releng/14.2 has been updated by gordon: URL: https://cgit.FreeBSD.org/src/commit/?id=168703212b618f32b42ed1f9e062a74d7f0cc534 commit 168703212b618f32b42ed1f9e062a74d7f0cc534 Author: Oleg Streejak AuthorDate: 2025-07-17 17:06:50 +0000 Commit: Gordon Tetlow CommitDate: 2025-08-07 23:23:56 +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); }