From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202512 header.b=r3YhzhTv; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id 4319E5A0627 for ; Wed, 10 Dec 2025 06:16:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202512; t=1765343754; bh=jaOr0MSTMtInLkiStD4Il+VQCrivDgUIBxYQwlW1CG8=; h=From:To:Cc:Subject:Date:From; b=r3YhzhTvyA19SAxAeB8pESiLQ3HJtn2vkohGPUDd7yBa0EruaEQHhNGf+q6zQNzrk gU3Jt5QnUxo6Sv0w4u/IUPlfO1n0VJIyhCDFPDadmpBF5oPkLNDUR/Jy8DdNCuaBd6 VWeivHhobfGmGkEcQxhATljfYjJrAWzrrjbRswvG1ZuBaXDfmsVp8SgtkGjj0N7BV5 38dW1uR9CCJT864Wl+AndEvoLKqhPlun8oP1lR3mnJ9UAvQBfiFibN2UhajNyOjy+7 VBJgGdJTlxmO7Q2of5Wwy/zl54HNoAt/3Em1P4E37rhhwE2t7BcQsGK663WFVIPDkS Rbj5TwVlOUe+g== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4dR3pL1hp8z4wGK; Wed, 10 Dec 2025 16:15:54 +1100 (AEDT) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 0/2] Improved exit()/_exit() handling Date: Wed, 10 Dec 2025 16:15:50 +1100 Message-ID: <20251210051552.1157177-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.52.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: BTDRZ3T3U5F6BVOKANDRUWTQOUXEL54L X-Message-ID-Hash: BTDRZ3T3U5F6BVOKANDRUWTQOUXEL54L X-MailFrom: dgibson@gandalf.ozlabs.org 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: David Gibson 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: As discussed on IRC, while working on the forwarding extensions, I discovered that failures at certain points of initialisation (in particular tcp_init() or udp_init() can result in a zombie pasta child process. Here's a fix. David Gibson (2): treewide: Introduce passt_exit() helper pasta: Clean up waiting pasta child on failures conf.c | 11 ++++------- log.h | 9 +++++++-- passt.c | 6 +++--- pasta.c | 12 ++++++------ pasta.h | 1 + tap.c | 6 ++---- util.c | 29 +++++++++++++++++++++++------ util.h | 1 - vhost_user.c | 4 ++-- 9 files changed, 48 insertions(+), 31 deletions(-) -- 2.52.0