From 0a91a31e477a1815ae6190236609fc416aaa3c16 Mon Sep 17 00:00:00 2001 From: Sertonix Date: Mon, 24 Jun 2024 16:35:36 +0200 Subject: [PATCH] abuild: kill all childs when bwrap exits --unshare-pid is needed for --die-with-parent to work correctly. Ref https://github.com/containers/bubblewrap/issues/529 --- abuild.in | 1 + 1 file changed, 1 insertion(+) diff --git a/abuild.in b/abuild.in index d2bbbd8..8c48592 100644 --- a/abuild.in +++ b/abuild.in @@ -2567,6 +2567,7 @@ rootbld() { local bwrap_opts="" options_has "net" || bwrap_opts="$bwrap_opts --unshare-net" bwrap --new-session --unshare-ipc --unshare-uts $bwrap_opts \ + --unshare-pid --die-with-parent \ --ro-bind "$BUILD_ROOT" / \ --proc /proc \ --dev-bind /dev /dev \