From 4d82739fda719a02a0790084ad400061877a3e08 Mon Sep 17 00:00:00 2001 From: Eric Dumazet Date: Wed, 15 Apr 2026 13:03:07 +0000 Subject: [PATCH] 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 --- misc/ss.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.47.3