From f0734f618a8ced57988c4ae13ca6806f8fa31d1d Mon Sep 17 00:00:00 2001 From: kde <Tic2929014466@hotmail.com> Date: Thu, 17 Aug 2023 10:50:32 +0800 Subject: [PATCH] fix dangling appimage process --- scripts/ablrun_part | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ablrun_part b/scripts/ablrun_part index af180fb..33f9ef1 100755 --- a/scripts/ablrun_part +++ b/scripts/ablrun_part @@ -83,7 +83,7 @@ ablrun_nocap() { } ablrun_nocap_noreplace() { - exec bwrap \ + bwrap \ --dev-bind / / \ --bind /usr/${ABL_DIR_PREFIX}/additional-base-lib/"$ABL_TARGET_LD_SO_PATH" "$ABL_LD_SO_PATH" \ --bind /usr/${ABL_DIR_PREFIX}/additional-base-lib/libc.so.6 "$ABL_LIBC_SO_PATH" \ @@ -141,6 +141,7 @@ then ablrun_nocap_noreplace "$ABLIMAGE_DIR/AppRun" "${ABLIMAGE_PARAMETERS[@]:1}" # Use coproc, so no exec here. + kill "$ABLIMAGE_PID" exit fi fi