From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=fail (p=quarantine dis=none) header.from=redhat.com Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTPS id C1CA35A026E for ; Fri, 27 Nov 2026 09:29:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795768150; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0SjVAhuTjGoBRGhHs3eAA+wLqFRjchd1myTIZMrpvAs=; b=R3WwJplNaBJJasbXievr7l+CVgMvQ7qa6wJ77Cam9TeyA00JQz12+48KTTbrID7nK4Mi51 ImEzcR6BunBl/uhyAAs1/Ol/5UADznKibkchXPAp1UyBHL4a/STrKzDuDAqxv790u0IBwj afBVUMRSPZkrkam992jdZeOm0zXi9Vg= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-687-8pCA781AMXOGVM7EsHRu3g-1; Fri, 27 Nov 2026 08:29:08 +0000 X-MC-Unique: 8pCA781AMXOGVM7EsHRu3g-1 X-Mimecast-MFC-AGG-ID: 8pCA781AMXOGVM7EsHRu3g_1795768147 Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-6b879130a02so7086691a12.0 for ; Fri, 27 Nov 2026 00:29:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795768147; x=1796372947; h=date:content-transfer-encoding:content-type:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=0SjVAhuTjGoBRGhHs3eAA+wLqFRjchd1myTIZMrpvAs=; b=UijC7GtC9H4GfqGU8RRKol6O9mHPoy2Q/RjzykF54JVrROjIf50nflYNXxhxFGfmf7 XeT/2pz/GV//tjTxAtCYQwck8+93wgxHuexo/ePmKuuQgWpdbhzdivty4s/8/pKd0PA3 yiFeVjQSY++e6VT356ww7dmVVBfkOwnL1wSmXaBE4EkyL8nrPXR+fgKuIvkpQGficSP1 0q7FVcR/YjArGsGw7bixP0+JXCnFjJq/hDakTb4ecr5q2P9MIho51bsJ73XXKMssZwY/ gmYpxVCaQFrYfBK7utXqlsMf6BK9u4YTcXkv7OXCPzAcIREml69PPiRxoLljYmHjo6Bh LQjQ== X-Gm-Message-State: APuU4Z+kqc1bZdtT43y4FW4I1di5ZZ9wWVlaIFNejSERVPBxdGeGi/xU LgmiuK7ufc6M/K7nDuVO504lx/d/mRuU5cl7zbCwEB+y0d/0ArRlmCOudD9fIwoJaZmpEmwAcug QV/IRWde7RJjx7AjQaANRpJAquJuHy8k5rJvs5rXZiMb7axVocG/jPAU55M3QvA== X-Gm-Gg: AZFdTZf8E7DYPjmbU9hqsmd1ts5KJCLzTstUiWyM/O9j53o2xvc/bJlzhegi8lCVIcu SojRQLCs8JbW/gESuvkJgF1ZkV3mE0rdxkI/enIkNqNpU239N9VxIe6LHhlJOQwPzrKw5TqklOP JIcvxsLgVS5LkyZPMSiHUK9QenK3iueT5G5Xjj8VY3b8L0z6gdYgE6lYvjMO7yE01D7iGd84Nw2 sKNQBefibnHnzp1Fp9BC9g1UP6+larRZHrMVMkIzeeP5zImyD6yXY64i3ZrWeVeq08y11Dzc9fA U1lteWICBh+oHDHTDWBNCTuYW8h3X+Au58xMy5zPLkqZ+7akZt9SR6bHT3XnH3MzWr0iSxilafE mlzaph+CKmaLcbgpKLSyGbDxmkRFh1Zyp3sflz/m2yjbQb8Ug5j+qRcVMrkn1LqcCPxarRp59rP IlnOo+SWOH X-Received: by 2002:a05:6402:2714:b0:6ba:7762:3dd9 with SMTP id 4fb4d7f45d1cf-6ba776242b6mr12793071a12.24.1795768147252; Fri, 27 Nov 2026 00:29:07 -0800 (PST) X-Received: by 2002:a05:6402:2714:b0:6ba:7762:3dd9 with SMTP id 4fb4d7f45d1cf-6ba776242b6mr12793051a12.24.1795768146613; Fri, 27 Nov 2026 00:29:06 -0800 (PST) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [176.103.220.4]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab69bf630esm46342517f8f.16.2026.11.27.00.29.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2026 00:29:06 -0800 (PST) From: Stefano Brivio To: Hayato Kiwata Subject: Re: [PATCH] pesto: Drop exit_status, use status to select the exit code Message-ID: <20261127092904.18025e15@elisabeth> In-Reply-To: <20261125133807.26349-1-dev@haytok.jp> References: <20261125133807.26349-1-dev@haytok.jp> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.49; x86_64-pc-linux-gnu) MIME-Version: 1.0 Date: Fri, 27 Nov 2026 09:29:05 +0100 (CET) X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: wGts9_OneDxR0oobl-bwsc5ev3dZMHhEtxrFBbd2gvA_1795768147 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: JSUPLHBV6LTVXWTGYRPJK7KJYDZFRMLH X-Message-ID-Hash: JSUPLHBV6LTVXWTGYRPJK7KJYDZFRMLH X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Wed, 25 Nov 2026 22:38:07 +0900 Hayato Kiwata 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 > Signed-off-by: Hayato Kiwata Applied, thanks for polishing this up. -- Stefano