ss: force a flush in monitor mode
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- misc/ss.c | 1 + 1 file changed, 1 insertion(+)
misc/ss.c +1 -0
@@ -5534,6 +5534,7 @@ static int generic_show_sock(struct nlmsghdr *nlh, void *arg)render (); +fflush (stdout);return ret; }
Signature · 1 line
2.54.0.rc1.513.gad8abe7a5a-goog
This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:
Hello:
This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:
Quoted 8 lines · On Wed, 15 Apr 2026 13:03:07 +0000 you wrote:
Call
fflush()fromgeneric_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 <[email protected]>[...]
Here is the summary with links:
- [iproute2] ss: force a flush in monitor mode
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=4d82739fda71
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html