From: Eric Dumazet Date: Wed, 15 Apr 2026 13:03:07 +0000 (+0000) Subject: ss: force a flush in monitor mode X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;p=thirdparty%2Fiproute2.git ss: force a flush in monitor mode Call fflush() from generic_show_sock() in order to work with pipes and redirects. After this patch, "ss -E &>log_file" works as expected. Signed-off-by: Eric Dumazet --- diff --git a/misc/ss.c b/misc/ss.c index 121ca6d5..9671ba80 100644 --- a/misc/ss.c +++ b/misc/ss.c @@ -5542,6 +5542,7 @@ static int generic_show_sock(struct nlmsghdr *nlh, void *arg) render(); + fflush(stdout); return ret; }