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 1ea804ad549e23f767633e07efdd9adf1277af18..39b109276ffa83f12d1e1e9f8f2cf58c25737b4b 100644 --- a/misc/ss.c +++ b/misc/ss.c @@ -5534,6 +5534,7 @@ static int generic_show_sock(struct nlmsghdr *nlh, void *arg) render(); + fflush(stdout); return ret; } -- 2.54.0.rc1.513.gad8abe7a5a-goog