Netdev List
 help / color / mirror / Atom feed
* [PATCH iproute2-next v2] ss: show the process column for -T, -Z, and -z
@ 2026-11-30 19:20 Stephen Hemminger
  0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2026-11-30 19:20 UTC (permalink / raw)
  To: netdev; +Cc: dsahern, Frank Dressler, Stephen Hemminger

From: Frank Dressler <frank@dressler.pro>

The process column was disabled unless -p was passed. However,
ss with -T, -Z, and -z still collects the information, and the
man page requires them to show it without -p.

Fixes: 84c45b8acb30 ("Reapply "ss: prevent "Process" column from being printed unless requested"")

Signed-off-by: Frank Dressler <frank@dressler.pro>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
rebased for iproute2-next move of ss

 ss/ss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ss/ss.c b/ss/ss.c
index f66c0685..0a141768 100644
--- a/ss/ss.c
+++ b/ss/ss.c
@@ -539,7 +539,7 @@ int main(int argc, char *argv[])
 	if (ssfilter_parse(&current_filter.f, argc, argv, filter_fp))
 		usage();
 
-	if (!show_processes)
+	if (!show_processes && !show_threads && !show_proc_ctx && !show_sock_ctx)
 		field_disable(COL_PROC);
 
 	if (!show_queues) {
-- 
2.53.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30 19:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 19:20 [PATCH iproute2-next v2] ss: show the process column for -T, -Z, and -z Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox