Re: [PATCH v2 03/14] tools/rv: Fix exit status when monitor execution fails
From: Gabriele Monaco
Date: Tue May 19 2026 - 08:39:36 EST
On Mon, 2026-05-18 at 10:32 +0200, Nam Cao wrote:
> Gabriele Monaco <gmonaco@xxxxxxxxxx> writes:
> > + exit(run <= 0);
>
> Probably better to stick to the C standard:
>
> exit(run > 0 ? EXIT_SUCCESS : EXIT_FAILURE)
>
> but whatever.
>
> Reviewed-by: Nam Cao <namcao@xxxxxxxxxxxxx>
Good point, that's far more readable, will apply and perhaps use those macros
also for other 0/1 in the file.
Thanks,
Gabriele