Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from diktynna.open-mesh.org (diktynna.open-mesh.org [136.243.236.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 774E8C43458 for ; Sun, 5 Jul 2026 17:32:00 +0000 (UTC) Received: from diktynna.open-mesh.org (localhost [IPv6:::1]) by diktynna.open-mesh.org (Postfix) with ESMTP id E87668454B for ; Sun, 05 Jul 2026 19:31:58 +0200 (CEST) ARC-Seal: i=2; cv=pass; a=rsa-sha256; d=open-mesh.org; s=20121; t=1783272718; b=Go23dAw1ZQkgZaYRn2tH8COQuTe12DK0+Sj1voewnIRRayu/pOU8QNblyD0vYVhF9d09O u2PAt+nl/Ugs9oc2hL0uVMSNwFn7G4ug0phW/1VANVpw3pNP4ZRIidb9JMja9wca/rks8J2 ce/GUWAJe7OmIKmr6RuJ7CUN3N2bObQ= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=open-mesh.org; s=20121; t=1783272718; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=9VIMuAmUMflfvPJR7elaeznJTg/RIWHfrk6M3UACTbg=; b=sqt1u/hbnYsAdeD9E9OT+L1zCRCOApltS5p+ZP295CeAQOsEnlITld6AG+6nHYF8VDGpA +d8TVmmXprAYzzD+GVExXtl16oIzHAMwWa2jJlAtC8QGEq2xQbfXI6uuZ8Cishm78drQH1i c4XY3qlV7y45tYFzDsSmNam83lPQZhQ= ARC-Authentication-Results: i=2; open-mesh.org; dkim=pass header.d=narfation.org; arc=pass; dmarc=pass header.from=narfation.org policy.dmarc=none Authentication-Results: open-mesh.org; dkim=pass header.d=narfation.org; arc=pass; dmarc=pass (Used From Domain Record) header.from=narfation.org policy.dmarc=none Received: from dvalin.narfation.org (dvalin.narfation.org [IPv6:2a00:17d8:100::8b1]) by diktynna.open-mesh.org (Postfix) with UTF8SMTPS id 80CED821A1 for ; Sun, 05 Jul 2026 19:30:15 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; d=open-mesh.org; s=20121; cv=none; t=1783272615; b=bnylu4SvbDKJpH1KslJsygyeAkn8Ntofdp1GuXwOfQYlKerwRRMkJiUBx2SRiCCGjLgztC YFpzcR8RUfX0wbzYN7tsYb4sto0kav0hn4LDyjYLrfcNmFMS9GHGkJZQa4Yg8NtAq9hG98 O1ArKvBs130KgTNWt44s9UeB37NPo88= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=open-mesh.org; s=20121; t=1783272615; 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:dkim-signature; bh=9VIMuAmUMflfvPJR7elaeznJTg/RIWHfrk6M3UACTbg=; b=iVfEiWn7VbwLdH0VUC0D+YH/RCr4RONwD/EQnmEHu76kVpTQv5X1ouLuqlXO/kr1vb7mQt ipAcl8nBmHOhAGxMZQqjZeUhXtbknR320O8sG8siMpizJM2V6ioGmZFutWpI8Zbpvj7TmR UNvVHxCP4H26RppC7bflvzYoKVH8nFg= ARC-Authentication-Results: i=1; diktynna.open-mesh.org; dkim=pass header.d=narfation.org header.s=20121 header.b=tirZX13T; spf=pass (diktynna.open-mesh.org: domain of sven@narfation.org designates 2a00:17d8:100::8b1 as permitted sender) smtp.mailfrom=sven@narfation.org; dmarc=pass (policy=none) header.from=narfation.org Received: by dvalin.narfation.org (Postfix) id 58B7F1FEE6; Sun, 05 Jul 2026 17:30:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1783272614; 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=9VIMuAmUMflfvPJR7elaeznJTg/RIWHfrk6M3UACTbg=; b=tirZX13TubX5DUM6O5rfzya1s9fPpFhS+M01C1N/5MExLF/Hekp9JsBchw25qxwSrS6zNx 3kK8eq06d2kedeFgfKJ5rv36EbQO/T+F6BLH6JdelvL5HsJuzSwnlL2AMUdGG4kfIA5u8u HRSEV3symAENNouq2IRrmGFLHmeevyE= From: Sven Eckelmann Date: Sun, 05 Jul 2026 19:30:05 +0200 Subject: [PATCH 2/9] batctl: tcpdump: return EXIT_SUCCESS on normal termination MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260705-bugfixes-tcpdump-v1-2-c37f6f82eed1@narfation.org> References: <20260705-bugfixes-tcpdump-v1-0-c37f6f82eed1@narfation.org> In-Reply-To: <20260705-bugfixes-tcpdump-v1-0-c37f6f82eed1@narfation.org> To: b.a.t.m.a.n@lists.open-mesh.org Cc: Sven Eckelmann X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=628; i=sven@narfation.org; h=from:subject:message-id; bh=bNLi63nTJHSqDhDy+AE4GRjzUdZG+fQMHHH5SUTVAL8=; b=owGbwMvMwCXmy1+ufVnk62nG02pJDFleU+a96wthrElJ/Dltz0GOv+sftcbF9Urqr/7iJRIut 7fy/MyrHaUsDGJcDLJiiix7ruSf38z+Vv7ztI9HYeawMoEMYeDiFICJPOhjZHjFbM9u72TCu709 gDVAQKZ8Zsfrtt/tjDlftzNfl93eU8bw32/5mw9BX5nVd2zxnraqadXZpZ5m4TczS9vWcLBzJjv lcQAA X-Developer-Key: i=sven@narfation.org; a=openpgp; fpr=522D7163831C73A635D12FE5EC371482956781AF Message-ID-Hash: MKLY3T4CYAZNWGSFZ4ZTNNCNPBNREUDS X-Message-ID-Hash: MKLY3T4CYAZNWGSFZ4ZTNNCNPBNREUDS X-MailFrom: sven@narfation.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-b.a.t.m.a.n.lists.open-mesh.org-0; header-match-b.a.t.m.a.n.lists.open-mesh.org-1; header-match-b.a.t.m.a.n.lists.open-mesh.org-2; header-match-b.a.t.m.a.n.lists.open-mesh.org-3; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: The list for a Better Approach To Mobile Ad-hoc Networking Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The main capture loop of tcpdump ends when SIGINT/SIGTERM sets is_aborted. In this case, the return value should reflect this clean shutdown. Signed-off-by: Sven Eckelmann --- tcpdump.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tcpdump.c b/tcpdump.c index a48f8ad..33b7226 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -1618,6 +1618,8 @@ static int tcpdump(struct state *state __maybe_unused, int argc, char **argv) } } + ret = EXIT_SUCCESS; + out: list_for_each_entry_safe(dump_if, dump_if_tmp, &dump_if_list, list) { if (dump_if->raw_sock >= 0) -- 2.47.3