mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
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: 091fec1188 ("route: switch transport protocol [...]")
MFC after: 3 days
This commit is contained in:
parent
8768b60de1
commit
97b61b22ed
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue