* [PATCH] usertools/telemetry-watcher: fix hang on startup
@ 2026-09-09 14:46 Bruce Richardson
0 siblings, 0 replies; only message in thread
From: Bruce Richardson @ 2026-09-09 14:46 UTC (permalink / raw)
To: dev; +Cc: Bruce Richardson, stable
Commit cbfdffb1083d ("usertools/telemetry: load aliases from config
directory") added an extra printed output line to startup of the
dpdk-telemetry script when an alias file was loaded. This confuses the
wrapper script dpdk-telemetry-watcher, causing it to hang on startup.
Only print out the message when script is run interactively.
Fixes: cbfdffb1083d ("usertools/telemetry: load aliases from config directory")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
usertools/dpdk-telemetry.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/usertools/dpdk-telemetry.py b/usertools/dpdk-telemetry.py
index e575f269cb..b4dd789143 100755
--- a/usertools/dpdk-telemetry.py
+++ b/usertools/dpdk-telemetry.py
@@ -98,7 +98,9 @@ def load_aliases(alias_path=None):
except OSError as e:
print("Warning: failed to read {}: {}".format(alias_path, e), file=sys.stderr)
- print("Loaded {} aliases from {}".format(len(aliases), alias_path))
+ # only print this informational message in interactive mode
+ if os.isatty(sys.stdin.fileno()):
+ print("Loaded {} aliases from {}".format(len(aliases), alias_path))
return aliases
--
2.53.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-09 14:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-09 14:46 [PATCH] usertools/telemetry-watcher: fix hang on startup Bruce Richardson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.