[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<174683464575.3845363.2215498873352428279.git-patchwork-notify@kernel.org>
Date: Fri, 09 May 2025 23:50:45 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Donald Hunter <donald.hunter@...il.com>
Cc: netdev@...r.kernel.org, kuba@...nel.org, davem@...emloft.net,
edumazet@...gle.com, pabeni@...hat.com, horms@...nel.org,
jstancek@...hat.com, donald.hunter@...hat.com
Subject: Re: [PATCH net-next v1] tools: ynl: handle broken pipe gracefully in CLI
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@...nel.org>:
On Thu, 8 May 2025 12:21:02 +0100 you wrote:
> When sending YNL CLI output into a pipe, closing the pipe causes a
> BrokenPipeError. E.g. running the following and quitting less:
>
> ./tools/net/ynl/pyynl/cli.py --family rt-link --dump getlink | less
> Traceback (most recent call last):
> File "/home/donaldh/net-next/./tools/net/ynl/pyynl/cli.py", line 160, in <module>
> main()
> ~~~~^^
> File "/home/donaldh/net-next/./tools/net/ynl/pyynl/cli.py", line 142, in main
> output(reply)
> ~~~~~~^^^^^^^
> File "/home/donaldh/net-next/./tools/net/ynl/pyynl/cli.py", line 97, in output
> pprint.PrettyPrinter().pprint(msg)
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
> [...]
> BrokenPipeError: [Errno 32] Broken pipe
>
> [...]
Here is the summary with links:
- [net-next,v1] tools: ynl: handle broken pipe gracefully in CLI
https://git.kernel.org/netdev/net-next/c/0df6932485a0
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists