Subject: Re: [PATCH iproute2] misc/ifstat: ignore json_output when run using "-d"

From: Stephen Hemminger <[email-masked]>
Date: Tue, 11 Jul 2023 13:30:40 -0700

On Mon, 10 Jul 2023 16:15:22 +0530
Chander Govindarajan <[email-masked]> wrote:

> If ifstat is run with a command like:
> ifstat -d 5 -j
> 
> subsequent commands (with or without the "-j" flag) fail with:
> Aborted (core dumped)
> 
> Unsets json_ouput when using the "-d" flag. Also, since the "-d"
> daemon behaviour is not immediately obvious, add a 1 line
> description in the man page.
> 
> Signed-off-by: ChanderG <[email-masked]>

Rather than avoiding the problem, why not have ifstat support json in daemon mode?