From nobody Thu Jul 17 17:17:15 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 4bjfk34lpvz621vf; Thu, 17 Jul 2025 17:17:15 +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 4bjfk334jmz3Qgw; Thu, 17 Jul 2025 17:17:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1752772635; 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=1nsBLvJUXFiZATulOIiXK/3zwNUwOQ/GS9wQBFewRBk=; b=Ldgig+AD35h27MD+3+DJeVHMwwyOtWs5SnU3TP2p3C5RQVoZuENeFseSAQ5BbvVAwu/kv2 HXqAaXsiD7ayaKN1N5aI9jyeUd/cx+pnKPc4uUAmstg26azc8LpL2ZxdzSuWP0KAoi67ka 9Ng5avm541rPTAZ4nX1qoJSXz3zceqI/OYoGG6Tzc3YXOmr8pUgtzCYWwArd+eqnNM3Loh UOzi64K+5Z6s5UA5Ge7az9dR/Ah9quE9OaEC3F1M2LUjx06GY75xn5IaEtzZprr1Djzfro 4UkBYi7bKfkH6eEd0KoE75j4E5QOiguboYgZg+i97JJPc+X7x8nZ+J2tKUWigQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1752772635; 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=1nsBLvJUXFiZATulOIiXK/3zwNUwOQ/GS9wQBFewRBk=; b=j7XVkHSqW160dQusDKs0luEaKEyvgH+b6fYnuqGMo6NxKQgUCO0zNByYyjYW1IkSqj9vhF 7rDLXF0XJoSxabkycsXU/H5m3IRh7pefk/HeogTiJzylB6sVhdhNYLNrcLXF6gVcpHHZAM V/bCRDiRz9+zM1eBBjZ9zq7qGwJNMoH8DXakYF7CeoTIAaZ8ARDb9Io1943sIbdqqUuHDw vBBm1N0D/Sw4LTqn1mUrjvmHSbmc8Mo67/TCvkGGC+ilvwKmat4WUv+TGVRdXvLbWzBkKx NHsZi83lyAjLLQiH4qTGPsFtUiaCH3PgMq8I4j+trtwMefSsDhJS46UCaFotoA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1752772635; a=rsa-sha256; cv=none; b=Eod3kxzA4JvPE1Jk0N8vASJGxnJQkZ6/wVSls1h+xBg2r4knmjWzKzdhInmEv26vxpZPBo nZwxH0w7fUhctI/lleGQjnwHSIUQ7lIi53PrhswPIcq4ULBgHJPqwkE6urG/fSYkJKaY6x 6CRv2xdeOiI/uUvqd98gUE7px1+nUve7lEyWJ64FtBVE544aFSajMRDPXKKYLYw++ehqCm cHnBwYdNABQgdPswcbalchPd71aV5hO5atLrbhKmCiVdlODBRA7VcjJ/kIKE/HadRjEYzx 6WlLVC8ksLasstd7x3T/pAnfLjk//H8qN1CWfHPkENOQ0siak1UAjDajIOOvfQ== 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 4bjfk32N6pz142w; Thu, 17 Jul 2025 17:17:15 +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 56HHHFtU069336; Thu, 17 Jul 2025 17:17:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 56HHHFrJ069333; Thu, 17 Jul 2025 17:17:15 GMT (envelope-from git) Date: Thu, 17 Jul 2025 17:17:15 GMT Message-Id: <202507171717.56HHHFrJ069333@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 97b61b22edba - main - 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: kevans X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 97b61b22edba74c62adba1d022fb73541aa5ff93 Auto-Submitted: auto-generated The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=97b61b22edba74c62adba1d022fb73541aa5ff93 commit 97b61b22edba74c62adba1d022fb73541aa5ff93 Author: Oleg Streejak AuthorDate: 2025-07-17 17:06:50 +0000 Commit: Kyle Evans CommitDate: 2025-07-17 17:17:01 +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 [...]") MFC after: 3 days --- 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 631c2860b547..ba22a2ec1e22 100644 --- a/sbin/route/route_netlink.c +++ b/sbin/route/route_netlink.c @@ -738,6 +738,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); }