3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-12 11:48:29 +01:00

5d: re-raise the interrupt so a signalled gate does not exit 0

This commit is contained in:
2026-09-04 11:13:42 +02:00
parent 3d76f254d0
commit bfade8ece6
+3 -1
View File
@@ -14,7 +14,9 @@ with_firefox() {
local container in_image_network status=0
container=$(docker run -d --rm "$firefox_image")
# The id is baked in: the trap fires after this function's locals are gone.
trap "docker rm -f $container >/dev/null 2>&1" EXIT INT TERM
trap "docker rm -f $container >/dev/null 2>&1" EXIT
trap 'exit 130' INT
trap 'exit 143' TERM
in_image_network="container:$container"
"$@" || status=$?
return $status