From: Stefano Brivio <sbrivio@redhat.com>
To: Hayato Kiwata <dev@haytok.jp>
Cc: passt-dev@passt.top
Subject: Re: [PATCH] pesto: Drop exit_status, use status to select the exit code
Date: Fri, 27 Nov 2026 09:29:05 +0100 (CET) [thread overview]
Message-ID: <20261127092904.18025e15@elisabeth> (raw)
In-Reply-To: <20261125133807.26349-1-dev@haytok.jp>
On Wed, 25 Nov 2026 22:38:07 +0900
Hayato Kiwata <dev@haytok.jp> wrote:
> Commit 885c39e8b999 ("conf, pesto: Notify client of the result of rule
> updates") added an exit_status variable to exit with a non-zero status
> if the server reports a failure. However, the status read from the
> server already tells us whether the update failed.
>
> Drop exit_status, broaden the scope of status, and select the exit code
> from it when we call exit(). Initialize status to PESTO_STATUS_OK, since
> it is not read from the server when pesto only shows the current rules
> or the server uses a protocol version older than 3.
>
> Link: https://archives.passt.top/passt-dev/20261120235844.75da1afa@elisabeth/
> Suggested-by: Stefano Brivio <sbrivio@redhat.com>
> Signed-off-by: Hayato Kiwata <dev@haytok.jp>
Applied, thanks for polishing this up.
--
Stefano
prev parent reply other threads:[~2026-11-27 8:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 13:38 Hayato Kiwata
2026-11-27 8:29 ` Stefano Brivio [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261127092904.18025e15@elisabeth \
--to=sbrivio@redhat.com \
--cc=dev@haytok.jp \
--cc=passt-dev@passt.top \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).